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
SIMIX refactoring: replace 'request' by a more precise term: 'simcall'
[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
adf691c
..
b74bf90
100644
(file)
--- a/
src/gras/Transport/transport_plugin_tcp.c
+++ b/
src/gras/Transport/transport_plugin_tcp.c
@@
-767,12
+767,12
@@
void gras_trp_buf_socket_close(gras_socket_t sock)
#ifdef HAVE_READV
if (data->in_buf_v) {
#ifdef HAVE_READV
if (data->in_buf_v) {
- if (
xbt_dynar_length
(data->in_buf_v))
+ if (
!xbt_dynar_is_empty
(data->in_buf_v))
XBT_WARN("Socket closed, but some bytes were unread");
xbt_dynar_free(&data->in_buf_v);
}
if (data->out_buf_v) {
XBT_WARN("Socket closed, but some bytes were unread");
xbt_dynar_free(&data->in_buf_v);
}
if (data->out_buf_v) {
- if (
xbt_dynar_length
(data->out_buf_v)) {
+ if (
!xbt_dynar_is_empty
(data->out_buf_v)) {
XBT_DEBUG("Flush the socket before closing");
gras_trp_bufiov_flush(sock);
}
XBT_DEBUG("Flush the socket before closing");
gras_trp_bufiov_flush(sock);
}