  
  	if (conn->pending_buf_bytes > 0) {
  		nopoll_log (conn->ctx, NOPOLL_LEVEL_DEBUG, "Calling with bytes we can reuse (%d), requested: %d",
-@@ -1864,14 +2103,21 @@ int         __nopoll_conn_receive  (noPollConn * conn, char  * buffer, int  maxl
+@@ -1864,14 +2080,21 @@ int         __nopoll_conn_receive  (noPollConn * conn, char  * buffer, int  maxl
  #if defined(NOPOLL_OS_UNIX)
  	errno = 0;
  #endif

 	/* shutdown connection here */
 	if (conn->session != NOPOLL_INVALID_SOCKET) {
 	        shutdown (conn->session, SHUT_RDWR);
@@ -1819,6 +2031,32 @@ void __nopoll_pack_content (char * buffer, int start, int bytes)
 	return;
 }
 

 	if (! nopoll_conn_is_ok (conn)) {
 		printf ("ERROR: Expected to find proper client connection status, but found error..\n");
 		return nopoll_false;
@@ -1469,7 +1469,7 @@ nopoll_bool test_16 (void) {
 	ctx = create_ctx ();
 
 	/* call to create a connection */
