SwiftSH
SwiftSH copied to clipboard
Connection closed without notification?
When the other side of the ssh shell disconnects for some reason, I get no error callback. Any idea how to catch this hangup?
The console gives me this:
[] nw_socket_handle_socket_event Event mask: 0x4
[] tcp_connection_cancel 28
[] nw_socket_handle_socket_event Socket received WRITE_CLOSE event
[] nw_endpoint_handler_cancel [26 api.dropbox.com:443 ready resolver (satisfied)]
[] nw_endpoint_handler_cancel [26.1 162.125.1.7:443 ready socket-flow (satisfied)]
[] __nw_socket_service_writes_block_invoke sendmsg(fd 263, 31 bytes): socket has been closed
[] nw_endpoint_flow_protocol_error [26.1 162.125.1.7:443 cancelled socket-flow (null)] Socket protocol sent error: [32] Broken pipe
[] nw_endpoint_flow_protocol_disconnected [26.1 162.125.1.7:443 cancelled socket-flow (null)] Output protocol disconnected
[] nw_resolver_cancel_on_queue 0x60800010efa0
[] nw_endpoint_handler_cancel [28 api-content.dropbox.com:443 ready resolver (satisfied)]
[] nw_endpoint_handler_cancel [28.1 162.125.1.8:443 ready socket-flow (satisfied)]
[] __nw_socket_service_writes_block_invoke sendmsg(fd 318, 31 bytes): socket has been closed
[] nw_endpoint_flow_protocol_error [28.1 162.125.1.8:443 cancelled socket-flow (null)] Socket protocol sent error: [32] Broken pipe
[] nw_endpoint_flow_protocol_disconnected [28.1 162.125.1.8:443 cancelled socket-flow (null)] Output protocol disconnected
[] nw_resolver_cancel_on_queue 0x60800010eb20
[] -[NWConcrete_tcp_connection dealloc] 26
[] nw_socket_handle_socket_event Event mask: 0x4
[] nw_socket_handle_socket_event Socket received WRITE_CLOSE event
[] -[NWConcrete_tcp_connection dealloc] 28
[] tcp_connection_cancel 27
[] nw_socket_handle_socket_event Event mask: 0x4
[] nw_socket_handle_socket_event Socket received WRITE_CLOSE event
[] nw_endpoint_handler_cancel [27 api-content.dropbox.com:443 ready resolver (satisfied)]
[] nw_endpoint_handler_cancel [27.1 162.125.1.8:443 ready socket-flow (satisfied)]
[] __nw_socket_service_writes_block_invoke sendmsg(fd 316, 31 bytes): socket has been closed
[] nw_endpoint_flow_protocol_error [27.1 162.125.1.8:443 cancelled socket-flow (null)] Socket protocol sent error: [32] Broken pipe
[] nw_endpoint_flow_protocol_disconnected [27.1 162.125.1.8:443 cancelled socket-flow (null)] Output protocol disconnected
[] nw_resolver_cancel_on_queue 0x60800010add0
[] -[NWConcrete_tcp_connection dealloc] 27