Fix random hang in TCP reconnect in situations where the connection succeeds and immediately fails due to a certificate problem etc
Fix random hang in TCP reconnect in situations where the connection succeeds and immediately fails due to a certificate problem etc

scrapinghub/log-courier,dixitk13/log-courier,linearregression/log-courier,srizzling/log-courier,linearregression/log-courier,scrapinghub/log-courier,dixitk13/log-courier,MichaelLiZhou/log-courier,MichaelLiZhou/log-courier,dixitk13/log-courier,MichaelLiZhou/log-courier,srizzling/log-courier,linearregression/log-courier,srizzling/log-courier,scrapinghub/log-courier