Just joined the list so reposting Claudiu's original report since I have the same problem in 0.9.8a and as far as I can tell from the old mail thread it is unresolved (?) This is quite nasty if you do old fashioned sockets style event loops because the uninitialised socket descriptor of -1 gets put into the select loop.
Best wishes Ian Gardner
BIO_do_connect does not connect (bug?) Claudiu Dragalina-Paraipan Fri, 28 Oct 2005 06:07:44 -0700 Hello, I have noticed that BIO_do_connect doesn't start the connection upon call, instead the connection is established on the first BIO_puts, in my case. I am not sure if this is a bug or not, but I have traced it to bss_conn.c, function conn_ctrl, line 470: --- snip --- case BIO_C_DO_STATE_MACHINE: /* use this one to start the connection */ if (!(data->state != BIO_CONN_S_OK)) ret=(long)conn_state(b,data); else ret=1; break; --- snip --- Shouldn't the condition be simply data->state != BIO_CONN_S_OK ? Latter in the same file, in functions conn_read and conn_write a check is made with the above condition, and if the condition is true conn_state is called, which finally creates the socket and connects. Thank you. Regards, -- Claudiu Dragalina-Paraipan
______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
