Re: PR_Read fails second time on Solaris 8
"Vinu" <[email protected]> Wed, 27 May 2009 18:26:45 -0400
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Organization | Pass |
| Message-ID | <[email protected]> |
Hi Nelson, Yes, I did some more tests. The server sends the data and then closes the connection(becuase we use HTTP Connection:close and not Keep-Alive). But shouldnt PR_Read return the entire data and then only return 0(becuase the connection is closed). How can it return 0, before all the data has been returned to the application. BTW this same code on Linux and Windows works fine. 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. >