Re: PR_Write blocks indefinitely
Monkeon <[email protected]> Fri, 21 Nov 2008 08:39:48 -0800 (PST)
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
I'm afraid I misdiagnosed this problem. After further debug work, it turns out the PR_Write was fine. Unfortunately, I have managed to confirm that PR_NewPollableEvent intermittently returns NULL with a NSPR error -5974. The machine in question has plenty of system resources available, so this seems a slightly odd error. Also, we do a lot of memory allocation/socket creation etc in our program, but none of these calls fail. I managed to work round the problem by retrying the call (which invariably works), but this doesn't explain why it was happening in the first place. I would be interested if anyone else is encountering this issue... Monkeon wrote: > > > A client is witnessing a problem in our product where we attempt to send > something via a PR_Write, but it never succeeds, or it at least appears to > never succeed, as we never leave the call. This issue has been witnessed > on calls to other internal/local ports and also to external ports (i.e. > another machine). This issue is happening very intermittently and there > certainly appears to be no pattern to the success/failure of the call. > > > -- View this message in context: http://www.nabble.com/PR_Write-blocks-indefinitely-tp20130460p20624869.html Sent from the Mozilla - NSPR mailing list archive at Nabble.com.