A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/src/gras/Transport/transport_plugin_tcp.c
b/src/gras/Transport/transport_plugin_tcp.c
index
a4db1b6
..
b92dccc
100644
(file)
--- a/
src/gras/Transport/transport_plugin_tcp.c
+++ b/
src/gras/Transport/transport_plugin_tcp.c
@@
-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;
}