Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-13 Thread Corinna Vinschen
On Jan 12 16:54, Michael Enright wrote: > On Thu, Jan 12, 2017 at 2:13 PM, Corinna Vinschen > wrote: > > Step 3: > > > > If we did it really intelligent, maybe we finally also have a method > > to implement descriptor passing. Finally. After all these years. > > > > And maybe, we should not

Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-12 Thread Michael Enright
On Thu, Jan 12, 2017 at 2:13 PM, Corinna Vinschen wrote: > Step 3: > > If we did it really intelligent, maybe we finally also have a method > to implement descriptor passing. Finally. After all these years. > > And maybe, we should not actually use the socket itself to exchange > the informa

Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-12 Thread Corinna Vinschen
On Jan 12 11:59, Erik Bray wrote: > On Mon, Jan 9, 2017 at 6:16 PM, Corinna Vinschen wrote: > > Right. A better solution for the problem would be nice. Ultimately > > we want to check if the other side of the socket is actually a Cygwin > > process which knows the secret, not a stray native Windo

Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-12 Thread Erik Bray
On Mon, Jan 9, 2017 at 6:16 PM, Corinna Vinschen wrote: > On Jan 9 16:46, Erik Bray wrote: >> Hi Corinna, >> >> Thanks for the response. >> >> On Mon, Jan 9, 2017 at 3:13 PM, Corinna Vinschen wrote: >> > Right. It has to do with how connect/accept works on AF_LOCAL sockets. >> > The handshake do

Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-09 Thread Corinna Vinschen
On Jan 9 16:46, Erik Bray wrote: > Hi Corinna, > > Thanks for the response. > > On Mon, Jan 9, 2017 at 3:13 PM, Corinna Vinschen wrote: > > Right. It has to do with how connect/accept works on AF_LOCAL sockets. > > The handshake doesn't work well for situations like yours, where the > > same th

Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-09 Thread Erik Bray
Hi Corinna, Thanks for the response. On Mon, Jan 9, 2017 at 3:13 PM, Corinna Vinschen wrote: > Hi Erik, > > On Jan 9 14:29, Erik Bray wrote: >> On Mon, Jan 9, 2017 at 12:01 PM, Erik Bray wrote: >> > On Fri, Jan 6, 2017 at 12:40 PM, Erik Bray wrote: >> >> Hello, and happy new-ish year, >> >> >

Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-09 Thread Corinna Vinschen
Hi Erik, On Jan 9 14:29, Erik Bray wrote: > On Mon, Jan 9, 2017 at 12:01 PM, Erik Bray wrote: > > On Fri, Jan 6, 2017 at 12:40 PM, Erik Bray wrote: > >> Hello, and happy new-ish year, > >> > >> I've been working on and off over the past few months on bringing > >> Python's compatibility with Cy

Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)

2017-01-09 Thread Erik Bray
On Mon, Jan 9, 2017 at 12:01 PM, Erik Bray wrote: > On Fri, Jan 6, 2017 at 12:40 PM, Erik Bray wrote: >> Hello, and happy new-ish year, >> >> I've been working on and off over the past few months on bringing >> Python's compatibility with Cygwin up to snuff, including having all >> pertinent test