aboutsummaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/socket.c b/socket.c
index bc2d112..9f7c1a6 100644
--- a/socket.c
+++ b/socket.c
@@ -685,9 +685,6 @@ static void sofcantrcvmore(struct socket *so)
{
if ((so->so_state & SS_NOFDREF) == 0) {
shutdown(so->s, 0);
- if (global_writefds) {
- FD_CLR(so->s, global_writefds);
- }
}
so->so_state &= ~(SS_ISFCONNECTING);
if (so->so_state & SS_FCANTSENDMORE) {
@@ -702,12 +699,6 @@ static void sofcantsendmore(struct socket *so)
{
if ((so->so_state & SS_NOFDREF) == 0) {
shutdown(so->s, 1); /* send FIN to fhost */
- if (global_readfds) {
- FD_CLR(so->s, global_readfds);
- }
- if (global_xfds) {
- FD_CLR(so->s, global_xfds);
- }
}
so->so_state &= ~(SS_ISFCONNECTING);
if (so->so_state & SS_FCANTRCVMORE) {