Skip to content
  • deuce's avatar
    A deadlock could occur if you called conn_close() while the remote was sending · 224f0ca1
    deuce authored
    a buttload of data.  If the input queue filled up before the socket was closed,
    the input queue could be stuck waiting for the ring buffer to drain while
    conn_close() is stuck waiting for the input thread to stop.
    
    We now consume data from the input buffer while waiting for the input thread
    to stop.
    224f0ca1