Skip to content

Instantly share code, notes, and snippets.

@co-dh co-dh/gist:6672807
Created Sep 23, 2013

Embed
What would you like to do?
{{EPOLLIN, {u32=7, u64=7}}}, 1, 4294967295) = 1
[pid 8948] <... epoll_wait resumed> {{EPOLLIN, {u32=7, u64=7}}}, 1, 4294967295) = 1
[pid 8950] accept4(7, <unfinished ...>
[pid 8948] accept4(7, <unfinished ...>
[pid 8950] <... accept4 resumed> {sa_family=AF_INET, sin_port=htons(56577), sin_addr=inet_addr("127.0.0.1")}, [16], SOCK_NONBLOCK) = 9
[pid 8948] <... accept4 resumed> 0x7f4fefdb409a, [110], SOCK_NONBLOCK) = -1 EAGAIN (Resource temporarily unavailable)
[pid 8950] read(9, "\0\221\2\0\16\0REQUEST_METHOD\3\0GET\v\0REQUE"..., 4100) = 661
[pid 8948] epoll_wait(8, <unfinished ...>
[pid 8950] socket(PF_INET, SOCK_STREAM|SOCK_NONBLOCK, IPPROTO_IP) = 10
[pid 8950] connect(10, {sa_family=AF_INET, sin_port=htons(3032), sin_addr=inet_addr("192.168.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress)
[pid 8950] poll([{fd=10, events=POLLOUT}], 1, 4000) = 1 ([{fd=10, revents=POLLOUT|POLLERR|POLLHUP}])
[pid 8950] write(10, "o$\0\21\3\0cmd\3\0get\3\0key\5\0hello\5\0cach"..., 40) = -1 ECONNREFUSED (Connection refused)
[pid 8950] close(10) = 0
[pid 8950] write(1, "None\n", 5) = 5
[pid 8950] write(9, "HTTP/1.1 200 OK\r\nContent-Type: t"..., 44) = 44
[pid 8950] write(9, "Hello World", 11) = 11
[pid 8950] close(9) = 0
[pid 8950] writev(2, [{"[pid: 8950|app: 0|req: 2/3] 127."..., 190}], 1) = 190
[pid 8950] epoll_wait(8, {{EPOLLIN, {u32=7, u64=7}}}, 1, 4294967295) = 1
[pid 8948] <... epoll_wait resumed> {{EPOLLIN, {u32=7, u64=7}}}, 1, 4294967295) = 1
[pid 8950] accept4(7, <unfinished ...>
[pid 8948] accept4(7, <unfinished ...>
[pid 8950] <... accept4 resumed> {sa_family=AF_INET, sin_port=htons(56579), sin_addr=inet_addr("127.0.0.1")}, [16], SOCK_NONBLOCK) = 9
[pid 8948] <... accept4 resumed> 0x7f4fefdb409a, [110], SOCK_NONBLOCK) = -1 EAGAIN (Resource temporarily unavailable)
[pid 8950] read(9, <unfinished ...>
[pid 8948] epoll_wait(8, <unfinished ...>
[pid 8950] <... read resumed> "\0L\2\0\16\0REQUEST_METHOD\3\0GET\v\0REQUE"..., 4100) = 592
[pid 8950] socket(PF_INET, SOCK_STREAM|SOCK_NONBLOCK, IPPROTO_IP) = 10
[pid 8950] connect(10, {sa_family=AF_INET, sin_port=htons(3032), sin_addr=inet_addr("192.168.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress)
[pid 8950] poll([{fd=10, events=POLLOUT}], 1, 4000) = 1 ([{fd=10, revents=POLLOUT|POLLERR|POLLHUP}])
[pid 8950] write(10, "o$\0\21\3\0cmd\3\0get\3\0key\5\0hello\5\0cach"..., 40) = -1 ECONNREFUSED (Connection refused)
[pid 8950] close(10) = 0
[pid 8950] write(1, "None\n", 5) = 5
[pid 8950] write(9, "HTTP/1.1 200 OK\r\nContent-Type: t"..., 44) = 44
[pid 8950] write(9, "Hello World", 11) = 11
[pid 8950] close(9) = 0
[pid 8950] writev(2, [{"[pid: 8950|app: 0|req: 3/4] 127."..., 201}], 1) = 201
[pid 8950] epoll_wait(8,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.