Re: [HACKERS] Backbranch releases and Win32 locking

2006-10-09 Thread Teodor Sigaev
Analyzing locking state, lock occurs when backend wants to send data to stat collector. So state is: backend waits FD_WRITE event, stat collector waits FD_READ. I suspect follow sequence of events in backend: 0 Let us work only with one socket, and socket associated with statically defined

Re: [HACKERS] Backbranch releases and Win32 locking

2006-10-09 Thread Magnus Hagander
Analyzing locking state, lock occurs when backend wants to send data to stat collector. So state is: backend waits FD_WRITE event, stat collector waits FD_READ. I suspect follow sequence of events in backend: 0 Let us work only with one socket, and socket associated with statically

Re: [HACKERS] Backbranch releases and Win32 locking

2006-10-09 Thread Teodor Sigaev
Hmm. Not entirely sure. These are all in the SSL codepath. Are you using SSL on the machine? Does the problem go away if you don't? (I was No, we don;t use SSL. The normal way is that pgwin32_waitforsinglesocket is called from pgwin32_send(), which will always have made the attempt to send

Re: [HACKERS] Backbranch releases and Win32 locking

2006-10-09 Thread Teodor Sigaev
:(( Patch doesn't work. -- Teodor Sigaev E-mail: [EMAIL PROTECTED] WWW: http://www.sigaev.ru/ ---(end of broadcast)--- TIP 1: if posting/reading through Usenet,