From: Mirko V. <mir...@gm...> - 2013-03-11 10:18:29
|
While trying to fetch some web pages with drakma, I ran into the following issue with socket-connect: I can connect only when the timeout is set to NIL or 0. The following is tested on clisp on cygwin + windows 7. But others have reported similar issues. These two work (I use close to release the stream): (close (socket-connect 80 "www.lisp.org")) (close (socket-connect 80 "www.lisp.org" :timeout 0)) But this will fail: (close (socket-connect 80 "www.lisp.org" :timeout 1)) I also tried much smaller and much larger values of timeout. The error I get is: UNIX error 116 (ETIMEDOUT): Connection timed out [Condition of type SYSTEM::SIMPLE-OS-ERROR] Is this the expected behavior? Thanks, Mirko |