Menu

#25 crawler: connect() waits forever

CRAWLER_1_0
open
nobody
crawler (14)
7
2001-12-06
2001-12-06
No

A blocking call is used for connect(). This is a bad
idea, since the waiting time is not specified and in
fact equals several minutes. I don't know how to
influence the timeout, haven't seen any appropriate
option in setsockopt(). If anyone knows, please tell
me. The use of non-blocking call and select() with
timeout seems safe.

Discussion


Log in to post a comment.