fix for bug 650 (PacketSocket Close()
authorDuy Nguyen <dnlove@gmail.com>
Thu Aug 06 21:58:04 2009 -0700 (6 months ago)
changeset 469860cd412fa3dd
parent 4697 6e048d6486d8
child 4699 ba5d6d52be7e
fix for bug 650 (PacketSocket Close()
src/node/packet-socket.cc
     1.1 --- a/src/node/packet-socket.cc	Wed Aug 05 20:53:44 2009 -0700
     1.2 +++ b/src/node/packet-socket.cc	Thu Aug 06 21:58:04 2009 -0700
     1.3 @@ -172,7 +172,7 @@
     1.4        m_errno = ERROR_BADF;
     1.5        return -1;
     1.6      }
     1.7 -  m_shutdownRecv = false;
     1.8 +  m_shutdownRecv = true;
     1.9    return 0;
    1.10  }
    1.11  
    1.12 @@ -186,6 +186,8 @@
    1.13        return -1;
    1.14      }
    1.15    m_state = STATE_CLOSED;
    1.16 +  m_shutdownSend = true;
    1.17 +  m_shutdownRecv = true;
    1.18    return 0;
    1.19  }
    1.20