Commit 02734a69 authored by Pekka Pessi's avatar Pekka Pessi

tport_type_tcp.c: checking for end-of-stream even if su_getmsgsize() promised more data

darcs-hash:20070601191323-65a35-7b99aacb6455b7f948be2dd802ae64026944665d.gz
parent 7d6f9a3e
......@@ -252,9 +252,9 @@ int tport_recv_stream(tport_t *self)
tport_dump_iovec(self, msg, n, iovec, veclen, "recv", "from");
/* Mark buffer as used */
msg_recv_commit(msg, n, 0);
msg_recv_commit(msg, n, n == 0);
return 1;
return n != 0;
}
ssize_t tport_send_stream(tport_t const *self, msg_t *msg,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment