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" <nonelsons...@nobolyardspam.me> wrote in message news:hbcdnu0a9klfuotxnz2dnuvz_hedn...@mozilla.org...
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.


--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to