Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix a vicious bug: TCP socket use a buffer and read operation get as much data as...
[simgrid.git] / src / gras / Transport / transport_plugin_tcp.c
index a4db1b6..b92dccc 100644 (file)
@@ -338,6 +338,8 @@ gras_trp_tcp_recv_withbuffer(gras_socket_t sock,
             got);
     }
   }
+  /* indicate to the gras_select function that there is more to read on this socket so that it does not actually select */
+  sock->moredata = (bufsize != 0);
   return got;
 }