Socket timeouts over 1 second cause assertion failures

Bug #1021819 reported by Alex Forrow
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libmemcached
Fix Released
Medium
Brian Aker

Bug Description

If you attempt to set a TCP timeout (SND_TIMEOUT for example) over 1 second you receive an assertion failure. Timeouts are measured in microseconds, and it appears that if seconds are required they need to be passed differently to setsockopt.

libmemcached/connect.cc:258: void set_socket_options(memcached_server_st*): Assertion `error == 0' failed.

errno is set to 33 - EDOM - Math argument out of domain of func

Code to reproduce: https://gist.github.com/3061316

Brian Aker (brianaker)
Changed in libmemcached:
assignee: nobody → Brian Aker (brianaker)
milestone: none → 1.0.10
Brian Aker (brianaker)
Changed in libmemcached:
importance: Undecided → Medium
status: New → In Progress
Brian Aker (brianaker)
Changed in libmemcached:
status: In Progress → Fix Committed
Brian Aker (brianaker)
Changed in libmemcached:
status: Fix Committed → Fix Released
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.