Handle connect_timeout
kerma opened this issue · comments
kerma 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)