mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
261a3f87cf
Calling read on a socket that has been closed for reading by the peer, read returns 0. The socket is still readable however, so polling and reading will return constant results of 0 received bytes. With this patch, if a socket's peer shuts down reading or if we reached the EOF, we stop watching the file descriptor for readability. |SocketIOBase| will detect this case exactly once and initiate the socket's shutdown. |
||
---|---|---|
.. | ||
app | ||
chromium | ||
contentproc | ||
dbus | ||
glue | ||
ipdl | ||
keystore | ||
netd | ||
nfc | ||
ril | ||
testshell | ||
unixfd | ||
unixsocket | ||
moz.build | ||
pull-chromium.py |