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

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

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