  }
  
  
-@@ -438,10 +565,17 @@ int nopoll_conn_tls_send (noPollConn * conn, char * buffer, int buffer_size)
+@@ -438,10 +566,17 @@ int nopoll_conn_tls_send (noPollConn * conn, char * buffer, int buffer_size)
  	int         res;
  	nopoll_bool needs_retry;
  	int         tries = 0;

 
 	/* check connection */
 	if (! nopoll_conn_is_ok (conn)) {
@@ -1789,7 +1789,7 @@ nopoll_bool test_19 (void) {
 
 	/* create connection */
 	printf ("Test 19: checking SSLv3 with TLSv1..\n");

 /** 
  * @internal Allows to create a plain socket connection against the
  * host and port provided.
@@ -207,69 +239,151 @@ nopoll_bool                 nopoll_conn_set_sock_tcp_nodelay   (NOPOLL_SOCKET so
  */
 NOPOLL_SOCKET nopoll_conn_sock_connect (noPollCtx   * ctx,
 					const char  * host,
