  			nopoll_msg_unref (msg);
  			nopoll_conn_shutdown (conn);
  			return NULL;
-@@ -2823,12 +3069,12 @@ noPollMsg   * nopoll_conn_get_msg (noPollConn * conn)
+@@ -2823,12 +3092,12 @@ noPollMsg   * nopoll_conn_get_msg (noPollConn * conn)
  
  	if (msg->op_code == NOPOLL_PING_FRAME) {
  		nopoll_log (conn->ctx, NOPOLL_LEVEL_DEBUG, "PING received over connection id=%d, replying PONG", conn->id);

 
 	/* check if the connection already finished its connection
 	   handshake */
@@ -4153,8 +4419,31 @@ nopoll_bool      nopoll_conn_wait_until_connection_ready (noPollConn * conn,
 		total_timeout = total_timeout - 500;
 	} /* end if */
 

 
 	/* remove local file */
 	if (stat ("copy-test-04c.txt", &file_info) == 0) {
@@ -920,7 +1036,7 @@ nopoll_bool test_05 (void) {
 	ctx = create_ctx ();
 
 	/* call to create a connection */
