Re: PR_Read fails second time on Solaris 8
"Vinu" <[email protected]> Wed, 27 May 2009 17:37:39 -0400
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Organization | Pass |
| Message-ID | <[email protected]> |
Yes, the server sent me all the data and then closed the connection. And NSPR should have received all the data and stored in its buffers. The returned the data to the client application through PR_Read. But this is not happening because PR_Read returns 0, even though it should have more data in its buffers. We have the exact same code on Windows and there NSPR seems to work fine. i.e PR_Read returns data properly. Thanks Vinu "Nelson Bolyard" <[email protected]> wrote in message news:[email protected]... > VinuT wrote, On 2009-05-22 16:26 PDT: >> We are using NSPR/NSS for SSL communication on Solaris8. >> >> Right now, we are using it as a client to communicate to another SSL >> server >> running on windows. >> However my PR_Read call returns with 0, when its called a second time. >> The first calls succeeds and returns me some data in the buffer. >> >> Can anybody throw some light as to what is going wrong here? > > Are you sure that anything is wrong? > Is it possible that the first buffer contained all the data from the > server? > Did the server send you the data and then close the connection? > > If you're not sure, try using ssltap. >