PyMySQL / Tornado-MySQL

PyMySQL fork for Tornado

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle connect_timeout

kerma opened this issue · comments

commented

Leaving it here, cause it took me a while to understand why my connections aren't dropping faster if I use low connect_timeout. From https://github.com/PyMySQL/Tornado-MySQL/blob/master/tornado_mysql/connections.py#L792

stream = iostream.IOStream(sock)
# TODO: handle connect_timeout
yield stream.connect(addr)