In a blocking socket when a network read freezes, it is normal. It only means that nothing arrived on the socket.
You got to take a look at the MSN protocol. With HTTP, it might be sending a TCP FIN or something which is why it is working in that case... --- Robert Olsson <[EMAIL PROTECTED]> wrote: > Hi, > I'm using openssl for the very first time, > developing a chat client > (for the MSN Messenger protocol) and have > now stumbled across a problem regarding blocking > sockets. Basically, > when receiving data from the server > after each request, I loop BIO_read until it returns > a value <= 0. > The problem is that BIO_read freezes during > the last call to it, when I instead am expecting it > to return a non- > positive value to end the loop. This method > works fine for e.g. receiving responses from HTTP > requests from web > servers, but not for receiving responses > from Microsoft's chat servers for some reason, as in > my case. I have > to idea how to approach this problem. Do > I have to use another way to see wether data is > available to read > from the BIO before calling BIO_read to > prevent it from freezing? Any help would be > appreciated. > > Thanks, > Robert > ______________________________________________________________________ > OpenSSL Project > http://www.openssl.org > User Support Mailing List > openssl-users@openssl.org > Automated List Manager > [EMAIL PROTECTED] > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]