Skip to content

Instantly share code, notes, and snippets.

@dekokun
Last active June 15, 2016 11:54
Show Gist options
  • Save dekokun/e4588332135939625ef43561c6b570e1 to your computer and use it in GitHub Desktop.
Save dekokun/e4588332135939625ef43561c6b570e1 to your computer and use it in GitHub Desktop.
[pid 64] 11:51:55.425444 epoll_wait(4, {{EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP|EPOLLRDHUP, {u32=992570104, u64=139634674330360}}, {EPOLLIN|EPOLLOUT|EPOLLRDHUP, {u32=992569912, u64=139634674330168}}}, 128, 0) = 2 <0.000026>
[pid 64] 11:51:55.426580 getsockopt(18, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 <0.000135>
[pid 64] 11:51:55.427115 getsockname(18, {sa_family=AF_INET, sin_port=htons(37902), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 <0.000006>
[pid 64] 11:51:55.427175 getpeername(18, {sa_family=AF_INET, sin_port=htons(8001), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 <0.000003>
[pid 64] 11:51:55.428044 setsockopt(18, SOL_TCP, TCP_NODELAY, [1], 4) = 0 <0.000092>
[pid 64] 11:51:55.428570 write(18, "HEAD / HTTP/1.0\r\n\r\n", 19) = 19 <0.000042>
[pid 64] 11:51:55.429533 read(18, "2016-06-15 11:51:55.420574555 +0"..., 512) = 48 <0.000008>
[pid 64] 11:51:55.430129 read(18, "", 1488) = 0 <0.000005>
[pid 64] 11:51:55.430187 write(2, "2016/06/15 11:51:55 main.go:66: "..., 812016/06/15 11:51:55 main.go:66: 2016-06-15 11:51:55.420574555 +0000 UTC count:15
) = 81 <0.000638>
[pid 64] 11:51:55.431240 socket(PF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 19 <0.000015>
[pid 64] 11:51:55.431295 setsockopt(19, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0 <0.000004>
[pid 64] 11:51:55.431332 connect(19, {sa_family=AF_INET, sin_port=htons(8001), sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EINPROGRESS (Operation now in progress) <0.000616>
[pid 64] 11:51:55.432669 epoll_ctl(4, EPOLL_CTL_ADD, 19, {EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, {u32=992569720, u64=139634674329976}}) = 0 <0.000018>
[pid 64] 11:51:55.433090 epoll_wait(4, {{EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP|EPOLLRDHUP, {u32=992569912, u64=139634674330168}}, {EPOLLOUT, {u32=992569720, u64=139634674329976}}}, 128, 0) = 2 <0.000014>
[pid 64] 11:51:55.433945 getsockopt(19, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 <0.000009>
[pid 64] 11:51:55.434037 getsockname(19, {sa_family=AF_INET, sin_port=htons(37904), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 <0.000007>
[pid 64] 11:51:55.434632 getpeername(19, {sa_family=AF_INET, sin_port=htons(8001), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 <0.000048>
[pid 64] 11:51:55.434821 setsockopt(19, SOL_TCP, TCP_NODELAY, [1], 4) = 0 <0.000008>
[pid 64] 11:51:55.435138 write(19, "HEAD / HTTP/1.0\r\n\r\n", 19) = 19 <0.002359>
[pid 64] 11:51:55.440634 read(19, 0xc820077e00, 512) = -1 EAGAIN (Resource temporarily unavailable) <0.000018>
[pid 64] 11:51:55.441270 epoll_wait(4, {}, 128, 0) = 0 <0.000006>
[pid 64] 11:51:55.442236 epoll_wait(4, {{EPOLLIN|EPOLLOUT, {u32=992569720, u64=139634674329976}}}, 128, -1) = 1 <0.000022>
[pid 64] 11:51:55.443256 read(19, "2016-06-15 11:51:55.440569258 +0"..., 512) = 48 <0.000012>
[pid 64] 11:51:55.443471 read(19, 0xc820086030, 1488) = -1 EAGAIN (Resource temporarily unavailable) <0.000010>
[pid 64] 11:51:55.444310 epoll_wait(4, {{EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP|EPOLLRDHUP, {u32=992569720, u64=139634674329976}}}, 128, 0) = 1 <0.000021>
[pid 64] 11:51:55.444964 read(19, 0xc820086030, 1488) = -1 ECONNRESET (Connection reset by peer) <0.000013>
[pid 64] 11:51:55.445509 write(2, "2016/06/15 11:51:55 main.go:64: "..., 1202016/06/15 11:51:55 main.go:64: Fatal error: %sread tcp 127.0.0.1:37904->127.0.0.1:8001: read: connection reset by peer
) = 120 <0.000119>
[pid 64] 11:51:55.445953 exit_group(1) = ?
<unfinished ...>
[pid 29] <... epoll_wait resumed> {{EPOLLIN, {u32=188834960, u64=139715474973840}}}, 128, -1) = 1
[pid 29] futex(0x67f090, FUTEX_WAKE, 1) = 1
[pid 28] <... futex resumed> ) = 0
[pid 29] accept4(4, <unfinished ...>
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] <... accept4 resumed> {sa_family=AF_INET6, sin6_port=htons(60336), inet_pton(AF_INET6, "::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28], SOCK_CLOEXEC|SOCK_NONBLOCK) = 6
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 29] epoll_ctl(5, EPOLL_CTL_ADD, 6, {EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, {u32=188834768, u64=139715474973648}} <unfinished ...>
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] <... epoll_ctl resumed> ) = 0
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 29] getsockname(6, <unfinished ...>
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] <... getsockname resumed> {sa_family=AF_INET6, sin6_port=htons(8001), inet_pton(AF_INET6, "::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
[pid 29] setsockopt(6, SOL_TCP, TCP_NODELAY, [1], 4) = 0
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 29] accept4(4, <unfinished ...>
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] <... accept4 resumed> 0xc820041a48, [112], SOCK_CLOEXEC|SOCK_NONBLOCK) = -1 EAGAIN (Resource temporarily unavailable)
[pid 29] write(2, "2016/06/15 11:17:33 37 Access co"..., 37 <unfinished ...>
2016/06/15 11:17:33 37 Access come !
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 29] <... write resumed> ) = 37
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] write(6, "2016-06-15 11:17:33.313847549 +0"..., 39) = 39
[pid 29] epoll_ctl(5, EPOLL_CTL_DEL, 6, c820031dbc) = 0
[pid 29] close(6) = 0
[pid 29] epoll_wait(5, {}, 128, 0) = 0
[pid 29] epoll_wait(5, <unfinished ...>
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 28] futex(0x67f090, FUTEX_WAIT, 0, {60, 0}
<unfinished ...>
[pid 29] <... epoll_wait resumed> {{EPOLLIN, {u32=188834960, u64=139715474973840}}}, 128, -1) = 1
[pid 29] futex(0x67f090, FUTEX_WAKE, 1) = 1
[pid 28] <... futex resumed> ) = 0
[pid 29] accept4(4, <unfinished ...>
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] <... accept4 resumed> {sa_family=AF_INET6, sin6_port=htons(60338), inet_pton(AF_INET6, "::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28], SOCK_CLOEXEC|SOCK_NONBLOCK) = 6
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 29] epoll_ctl(5, EPOLL_CTL_ADD, 6, {EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, {u32=188834768, u64=139715474973648}} <unfinished ...>
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] <... epoll_ctl resumed> ) = 0
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 29] getsockname(6, <unfinished ...>
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] <... getsockname resumed> {sa_family=AF_INET6, sin6_port=htons(8001), inet_pton(AF_INET6, "::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 29] setsockopt(6, SOL_TCP, TCP_NODELAY, [1], 4 <unfinished ...>
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] <... setsockopt resumed> ) = 0
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 29] accept4(4, <unfinished ...>
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] <... accept4 resumed> 0xc820041a48, [112], SOCK_CLOEXEC|SOCK_NONBLOCK) = -1 EAGAIN (Resource temporarily unavailable)
[pid 29] write(2, "2016/06/15 11:18:19 38 Access co"..., 372016/06/15 11:18:19 38 Access come !
) = 37
[pid 29] write(6, "2016-06-15 11:18:19.464336467 +0"..., 39) = 39
[pid 29] epoll_ctl(5, EPOLL_CTL_DEL, 6, c820031dbc <unfinished ...>
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 29] <... epoll_ctl resumed> ) = 0
[pid 28] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 29] close(6) = 0
[pid 29] epoll_wait(5, {}, 128, 0) = 0
[pid 29] epoll_wait(5, <unfinished ...>
[pid 28] <... select resumed> ) = 0 (Timeout)
[pid 28] futex(0x67f090, FUTEX_WAIT, 0, {60, 0} <unfinished ...>
[pid 10] <... futex resumed> ) = -1 ETIMEDOUT (Connection timed out)
[pid 10] select(0, NULL, NULL, NULL, {0, 20}) = 0 (Timeout)
[pid 10] futex(0xc91350, FUTEX_WAIT, 0, {60, 0}
[pid 33] 11:51:55.424191 epoll_ctl(5, EPOLL_CTL_DEL, 6, c820031d4c) = 0 <0.000006>
[pid 33] 11:51:55.424281 close(6) = 0 <0.000385>
[pid 33] 11:51:55.426697 epoll_wait(5, {}, 128, 0) = 0 <0.000310>
[pid 33] 11:51:55.427579 epoll_wait(5, <unfinished ...>
[pid 32] 11:51:55.429061 <... futex resumed> ) = 0 <0.014849>
[pid 32] 11:51:55.429891 select(0, NULL, NULL, NULL, {0, 20}) = 0 (Timeout) <0.000235>
[pid 32] 11:51:55.430799 futex(0x680090, FUTEX_WAIT, 0, {60, 0} <unfinished ...>
[pid 33] 11:51:55.431843 <... epoll_wait resumed> {{EPOLLIN, {u32=3082781840, u64=139782793430160}}}, 128, -1) = 1 <0.002984>
[pid 33] 11:51:55.431906 futex(0x680090, FUTEX_WAKE, 1) = 1 <0.000008>
[pid 33] 11:51:55.431947 accept4(4, {sa_family=AF_INET6, sin6_port=htons(37904), inet_pton(AF_INET6, "::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28], SOCK_CLOEXEC|SOCK_NONBLOCK) = 6 <0.000051>
[pid 33] 11:51:55.432770 epoll_ctl(5, EPOLL_CTL_ADD, 6, {EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, {u32=3082781648, u64=139782793429968}}) = 0 <0.000011>
[pid 33] 11:51:55.434079 getsockname(6, {sa_family=AF_INET6, sin6_port=htons(8001), inet_pton(AF_INET6, "::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0 <0.000436>
[pid 33] 11:51:55.434734 setsockopt(6, SOL_TCP, TCP_NODELAY, [1], 4) = 0 <0.000014>
[pid 33] 11:51:55.435087 accept4(4, 0xc8200419c0, [112], SOCK_CLOEXEC|SOCK_NONBLOCK) = -1 EAGAIN (Resource temporarily unavailable) <0.002586>
[pid 33] 11:51:55.440774 write(6, "2016-06-15 11:51:55.440569258 +0"..., 48) = 48 <0.000051>
[pid 33] 11:51:55.442545 write(2, "2016/06/15 11:51:55 main.go:101:"..., 502016/06/15 11:51:55 main.go:101: 16 Access come !
) = 50 <0.000139>
[pid 33] 11:51:55.443342 epoll_ctl(5, EPOLL_CTL_DEL, 6, c820031d4c) = 0 <0.000009>
[pid 33] 11:51:55.443692 close(6) = 0 <0.000603>
[pid 33] 11:51:55.444443 epoll_wait(5, {}, 128, 0) = 0 <0.000211>
[pid 33] 11:51:55.445390 epoll_wait(5, <unfinished ...>
[pid 32] 11:51:55.445787 <... futex resumed> ) = 0 <0.014933>
[pid 32] 11:51:55.445982 select(0, NULL, NULL, NULL, {0, 20}) = 0 (Timeout) <0.000373>
[pid 32] 11:51:55.447066 futex(0x680090, FUTEX_WAIT, 0, {60, 0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment