Re: PR_Write blocks indefinitely

Monkeon <[email protected]> Mon, 27 Oct 2008 13:59:45 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
Thanks for the reply.  The message being sent is no more than a few hundred
bytes maximum.  The "server" in this instance is another thread waiting on
PR_Poll().  This being the case, what situation would cause the server to
not read?  Since posting my last message, a second client has reported the
same issue, suggesting that this is not an environmental issue for a
specific client (i.e. antivirus etc).  Could XP service pack 3 be causing a
problem?



Wan-Teh Chang-3 wrote:
> 
> On Sat, Oct 25, 2008 at 2:59 AM, Monkeon <[email protected]> wrote:
>>
>> Hi,
>>
>> 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.
>>
>> Has anybody witnessed behaviour like this before?
> 
> If the socket is in blocking mode, you're trying to send a lot of
> data (for example, more than 64 KB), and the server is not reading,
> PR_Write can block indefinitely until either the server starts reading
> or the TCP connection is closed.
> 
> Wan-Teh
> _______________________________________________
> dev-tech-nspr mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-nspr
> 
> 

-- 
View this message in context: http://www.nabble.com/PR_Write-blocks-indefinitely-tp20130460p20196300.html
Sent from the Mozilla - NSPR mailing list archive at Nabble.com.