Re: calls to socket() fail when calling getaddrinfo() with IPPROTO_TCP

2021-07-30 Thread Corinna Vinschen via Cygwin
Hi John, On Jul 29 22:41, John Scott via Cygwin wrote: > Hi, > > I was wondering why my daytime server doesn't work when built for > Cygwin, and I have been able to narrow it down to this reproducible > test case: > [...] > This code fails with "Failed to create socket: Invalid argument". Does >

Re: calls to socket() fail when calling getaddrinfo() with IPPROTO_TCP

2021-07-30 Thread Corinna Vinschen via Cygwin
On Jul 30 11:34, Corinna Vinschen via Cygwin wrote: > Yeah, that's a bad joke as well. The reason is that the http service is > defined for TCP only. Not for UDP. As a result, Windows' getaddrinfo > suddenly returns a valid ai_socktype field: > > family: 23 socktype 1 protocol 6AF_INET6,

Re: calls to socket() fail when calling getaddrinfo() with IPPROTO_TCP

2021-07-30 Thread John Scott via Cygwin
On Fri, 2021-07-30 at 12:47 +0200, Corinna Vinschen wrote: > I've uploaded a new developer snapshot to https://cygwin.com/snapshots > Please give it a try and report back. Thank you so much! The snapshot works perfectly and now my daytime server works without code changes. signature.asc Descript

Re: calls to socket() fail when calling getaddrinfo() with IPPROTO_TCP

2021-07-30 Thread Brian Inglis
On 2021-07-29 16:41, John Scott via Cygwin wrote: I was wondering why my daytime server doesn't work when built for Cygwin, and I have been able to narrow it down to this reproducible test case: ... This code fails with "Failed to create socket: Invalid argument". Does anyone have an idea why t

Re: CYGWIN + windos10 + eclipse clp prolog

2021-07-30 Thread Manu goswami via Cygwin
Hi Mr Brian, Yes, you were right. The problem was upstream in Eclipse Prolog Source code. Has been resolved now. You may consider the issue closed. Only one query. Cygwin is a good idea and works well. But is it weaker in GUI and multithreaded as compared to msys2? Kindly advise Warm regards,