Socket timeout options removed

Bug #1322783 reported by fastest963
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
New
Undecided
Unassigned

Bug Description

Looking at connection.cc line 1316:
http://bazaar.launchpad.net/~tangent-trunk/gearmand/1.2/view/head:/libgearman/connection.cc#L1316

The SO_RCVTIMEO/SO_SNDTIMEO options are commented out. The problem is that if a server happens to be blackholed or have a firewall that drops packets on port 4730 the socket hangs in the SYN_SENT state and libgearman ends up hanging waiting forever. Is there a specific reason why these were commented out? The commit cae018c3233ccd0bce7f104846cf7c5ce48fba11 that put it behind an if (0) doesn't have anything in the message that would explain why it was removed.

Revision history for this message
fastest963 (fastest963) wrote :

Any updates to this?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.