Re: [go-nuts] Opening network connections blocks system thread

2024-02-10 Thread 'Brian Candler' via golang-nuts
I can't see how a large number of waiting goroutines would cause an increase in the number of OS threads, which was the OP's original problem (hitting the 10,000 thread limit) What the OP is implying - but we have not seen good evidence for yet - is that in some circumstances a non-blocking con

Re: [go-nuts] Opening network connections blocks system thread

2024-02-09 Thread Kurtis Rader
On Fri, Feb 9, 2024 at 2:10 PM Ian Lance Taylor wrote: > On Fri, Feb 9, 2024 at 11:57 AM Kurtis Rader wrote: > > > > The connect() syscall is normally blocking. It doesn't return until the > connection is established or an error occurs. It can be made non-blocking > by putting the file-descripto

Re: [go-nuts] Opening network connections blocks system thread

2024-02-09 Thread Ian Lance Taylor
On Fri, Feb 9, 2024 at 11:57 AM Kurtis Rader wrote: > > The connect() syscall is normally blocking. It doesn't return until the > connection is established or an error occurs. It can be made non-blocking by > putting the file-descriptor into non-blocking mode before the connect() call. > Howeve

Re: [go-nuts] Opening network connections blocks system thread

2024-02-09 Thread Kurtis Rader
The connect() syscall is normally blocking. It doesn't return until the connection is established or an error occurs. It can be made non-blocking by putting the file-descriptor into non-blocking mode before the connect() call. However, that then requires either an async callback or another syscall