Skip to content
Snippets Groups Projects
  • Craig Tiller's avatar
    aec96aa2
    Fix server shutdown · aec96aa2
    Craig Tiller authored
    A previous fix to make close() occur later can cause socket reuse by servers to fail as previous sockets are left asynchronously open.
    
    This change:
    - adds a callback to TCP server shutdown to signal that the server is completely shutdown
    - wait for that callback before destroying listeners in the server (and before destroying the server)
    - handles fallout
    aec96aa2
    History
    Fix server shutdown
    Craig Tiller authored
    A previous fix to make close() occur later can cause socket reuse by servers to fail as previous sockets are left asynchronously open.
    
    This change:
    - adds a callback to TCP server shutdown to signal that the server is completely shutdown
    - wait for that callback before destroying listeners in the server (and before destroying the server)
    - handles fallout
completion_queue.c 15.51 KiB