[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] tcp-connect looses socket-fd upon timeout
From: |
Peter Bex |
Subject: |
Re: [Chicken-hackers] tcp-connect looses socket-fd upon timeout |
Date: |
Wed, 16 May 2012 20:54:24 +0200 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, May 16, 2012 at 05:13:39PM +0200, Jörg F. Wittenberger wrote:
> ===================================================================
> --- 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) ) ) ))
As you explained in an off-list mail, this is a bugreport + patch combined.
This patch looks good to me. If another core dev agrees, he can sign
it off and push it.
Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth