Commit 7c813255 authored by Pekka Pessi's avatar Pekka Pessi

tport_tls.c: setting socket as nonblocking before handing it to OpenSSL

darcs-hash:20070222210309-55b16-b521ea0b79b376263535c948c50f0561c491c25b.gz
parent fdde8ff4
......@@ -427,6 +427,7 @@ tls_t *tls_clone(tls_t *master, int sock, int accept)
SSL_set_connect_state(tls->con);
SSL_set_mode(tls->con, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
su_setblocking(sock, 0);
tls_read(tls); /* XXX - works only with non-blocking sockets */
return tls;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment