[wanproxy/wanproxy] e99e24: Fix SocketUinet's end-of-stream behaviour.
Juli Mallett
juli at clockworksquid.com
Tue Jun 2 09:25:51 PDT 2015
Branch: refs/heads/master
Home: https://github.com/wanproxy/wanproxy
Commit: e99e24a153709af55351383741395c84f6e86f07
https://github.com/wanproxy/wanproxy/commit/e99e24a153709af55351383741395c84f6e86f07
Author: Juli Mallett <juli at clockworksquid.com>
Date: 2015-06-02 (Tue, 02 Jun 2015)
Changed paths:
M io/socket/socket_uinet.cc
M io/socket/socket_uinet.h
Log Message:
-----------
Fix SocketUinet's end-of-stream behaviour.
Split out a read_do(), since we won't get an upcall once we hit EOS, and need
to continue to yield EOS for any read() rather than blocking forever.
It might be better in time to simply track EOS and error state and to yield
the relevant event directly from read, write, etc., rather than having to
call into libuinet.
More information about the wanproxy
mailing list