chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] tcp-connect looses socket-fd upon timeout


From: Jim Ursetto
Subject: Re: [Chicken-hackers] tcp-connect looses socket-fd upon timeout
Date: Wed, 16 May 2012 20:27:28 -0500

Applied to master and stability, thanks.  I verified the behavior manually with 
lsof.  

Note that this was only an issue if tcp-connect-timeout is set, which is not 
the case by default; if the OS itself times out the connection, it got properly 
closed.

On May 16, 2012, at 10:13 AM, Jörg F. Wittenberger wrote:

> this should help:
> 
> ===================================================================
> --- tcp.scm
> +++ tcp.scm
> @@ -612,10 +612,11 @@
>                         ##sys#current-thread
>                         (+ (current-milliseconds) tmc) ) )
>                      (##sys#thread-block-for-i/o! ##sys#current-thread s 
> #:all)
>                      (yield)
>                      (when (##sys#slot ##sys#current-thread 13)
> +                      (##net#close s)
>                        (##sys#signal-hook
>                         #:network-timeout-error
>                         'tcp-connect
>                         "connect operation timed out" tmc s) )
>                      (loop2) ) ) ))
> ...........
> 
> 
> 
> _______________________________________________
> Chicken-hackers mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/chicken-hackers




reply via email to

[Prev in Thread] Current Thread [Next in Thread]