]> granicus.if.org Git - curl/commit
multi: fixes for timing out handles
authorDaniel Stenberg <daniel@haxx.se>
Wed, 1 Sep 2010 14:52:23 +0000 (16:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 1 Sep 2010 14:52:23 +0000 (16:52 +0200)
commitca10e28f06f168ec433d376ee8fd64a25b317f0f
treec2c88dafe0c5ba7aa9a467957bf58539b05905f0
parent5e920157112923417faf901b08098b65d82f7746
multi: fixes for timing out handles

Add a timeout check for handles in the state machine so that they will
timeout in all states disregarding what actions that may or may not
happen.

Fixed a bug in socket_action introduced recently when looping over timed
out handles: it wouldn't assign the 'data' variable and thus it wouldn't
properly take care of handles.

In the update_timer function, the code now checks if the timeout has
been removed and then it tells the application. Previously it would
always let the remaining timeout(s) just linger to expire later on.
lib/multi.c