epoll_create(EPOLL_CLOEXEC) = 6 /* 4 is a socket of HTTP_CLIENT. (got from accept4(SOCK_CLOEXEC|SOCK_NONBLOCK)) */ epoll_ctl(6, EPOLL_CTL_ADD, 4, {EPOLLIN|EPOLLOUT|EPOLLET|EPOLLRDHUP, {fd=4}}) = 0 pipe2([7, 9], O_NONBLOCK|O_CLOEXEC) = 0 /* Creating socket for a HTTP_SERVER */ socket(PF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 10 connect(10, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress) epoll_ctl(6, EPOLL_CTL_ADD, 10, {EPOLLIN|EPOLLOUT|EPOLLET|0x2000, {fd=10}}) = 0 pipe2([11, 12], O_NONBLOCK|O_CLOEXEC) = 0 epoll_wait(6, {{EPOLLOUT, {fd=4}}, {EPOLLOUT, {fd=10}}}, 100, -1) = 2 getsockopt(10, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=4}}}, 100, -1) = 1 splice(4, 0, 9, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 421 splice(7, 0, 10, 0, 0x1a5, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 421 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=10}}}, 100, -1) = 1 splice(10, 0, 12, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 801 splice(11, 0, 4, 0, 0x321, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 801 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=4}}}, 100, -1) = 1 splice(4, 0, 9, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 345 splice(7, 0, 10, 0, 0x159, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 345 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=10}}}, 100, -1) = 1 splice(10, 0, 12, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 502 splice(11, 0, 4, 0, 0x1f6, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 502 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=4}}}, 100, -1) = 1 splice(4, 0, 9, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 458 splice(7, 0, 10, 0, 0x1ca, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 458 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=10}}}, 100, -1) = 1 splice(10, 0, 12, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 929 splice(11, 0, 4, 0, 0x3a1, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 929 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=4}}}, 100, -1) = 1 splice(4, 0, 9, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 345 splice(7, 0, 10, 0, 0x159, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 345 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=10}}}, 100, -1) = 1 splice(10, 0, 12, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 502 splice(11, 0, 4, 0, 0x1f6, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 502 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=4}}}, 100, -1) = 1 splice(4, 0, 9, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 543 splice(7, 0, 10, 0, 0x21f, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 543 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=10}}}, 100, -1) = 1 splice(10, 0, 12, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 348 splice(11, 0, 4, 0, 0x15c, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 348 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=4}}}, 100, -1) = 1 splice(4, 0, 9, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 543 splice(7, 0, 10, 0, 0x21f, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 543 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=10}}}, 100, -1) = 1 splice(10, 0, 12, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 38787 splice(11, 0, 4, 0, 0x9783, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 38787 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=4}}}, 100, -1) = 1 splice(4, 0, 9, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 345 splice(7, 0, 10, 0, 0x159, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 345 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=10}}}, 100, -1) = 1 splice(10, 0, 12, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 502 splice(11, 0, 4, 0, 0x1f6, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 502 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=4}}}, 100, -1) = 1 splice(4, 0, 9, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 519 splice(7, 0, 10, 0, 0x207, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 519 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=10}}}, 100, -1) = 1 splice(10, 0, 12, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 49152 splice(11, 0, 4, 0, 0xc000, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 49152 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=10}}}, 100, -1) = 1 splice(10, 0, 12, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 49448 splice(11, 0, 4, 0, 0xc128, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 49448 epoll_wait(6, {{EPOLLIN|EPOLLOUT, {fd=10}}}, 100, -1) = 1 splice(10, 0, 12, 0, 65536, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 53248 splice(11, 0, 4, 0, 53248, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 32472 epoll_wait(6, {{EPOLLOUT, {fd=4}}}, 100, -1) = 1 splice(11, 0, 4, 0, 20776, SPLICE_F_MOVE|SPLICE_F_NONBLOCK) = 20776 epoll_wait(6, +++ killed by SIGINT +++