Skip to content

MySQL socket connections time out in 2.9dev #914

@sdann

Description

@sdann

The STARTTLS_SLEEP timeout increase from 1 second to 10 seconds in d1e7498, caused --starttls=mysql to stop working.

The starttls_mysql_dialog() function was using starttls_just_read(), which would return after 1 second. Now, after waiting 10 seconds, the server gives up on the connection and resets TCP.

The proper fix is to read the MySQL reply as a stream, detect its size from its header, and return after reading that many bytes, instead of relying on a timeout or newline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions