socket(PF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 4 setsockopt(4, SOL_SOCKET, SO_OOBINLINE, [1], 4) = 0 connect(4, {sa_family=AF_INET, sin_port=htons(22), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress) write(3, "\1\0\0\0\0\0\0\0", 8) = 8 setsockopt(4, SOL_TCP, TCP_NODELAY, [1], 4) = 0 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLOUT}], 2, 0) = 2 ([{fd=3, revents=POLLIN}, {fd=4, revents=POLLOUT}]) connect(4, {sa_family=AF_INET, sin_port=htons(22), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 getsockname(4, {sa_family=AF_INET, sin_port=htons(46418), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 getpeername(4, {sa_family=AF_INET, sin_port=htons(22), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 getsockopt(4, SOL_SOCKET, SO_TYPE, [1], [4]) = 0 write(3, "\1\0\0\0\0\0\0\0", 8) = 8 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN|POLLOUT}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=4, revents=POLLOUT}]) read(3, "\3\0\0\0\0\0\0\0", 16) = 8 write(3, "\1\0\0\0\0\0\0\0", 8) = 8 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}]) read(3, "\1\0\0\0\0\0\0\0", 16) = 8 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}], 2, -1) = 1 ([{fd=4, revents=POLLIN}]) read(3, 0x7fff3a01b250, 16) = -1 EAGAIN (Resource temporarily unavailable) ioctl(4, FIONREAD, [41]) = 0 read(4, "SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ub"..., 41) = 41