strace.log:
15:48:48.826818 setsockopt(12, SOL_SOCKET, SO_LINGER, {onoff=1, linger=0}, 8) =
0 <0.000023>
15:48:48.826881 close(12) = 0 <0.000037>
15:48:48.826968 epoll_wait(3, {{EPOLLIN, {u32=8, u64=8}}}, 500, 68) = 1
<0.048443>
15:48:48.875473 accept4(8, {sa_family=AF_INET, sin_port=htons(36509),
sin_addr=inet_addr("111.206.221.97")}, [16], SOCK_NONBLOCK) = 10 <0.000040>
15:48:48.875580 setsockopt(10, SOL_TCP, TCP_NODELAY, [1], 4) = 0 <0.000028>
15:48:48.875665 write(1, "00003c5e:website.accept(0008)=000a from
[111.206.221.97:36509]\n", 62) = 62 <0.000032>
15:48:48.875746 accept4(8, 0x7fff80cf31e0, [128], SOCK_NONBLOCK) = -1 EAGAIN
(Resource temporarily unavailable) <0.000029>
15:48:48.875843 recvfrom(10, "POST /token/GetToken/t505 HTTP/1.1\r\nHost:
preview-member-fnapp.website.com\r\nContent-Length: 296\r\nUser-Agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46
(KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1 (compatible;
Baiduspider-render/2.0;
+http://www.baidu.com/search/spider.html)\r\nProxy-Connection:
keep-alive\r\nOrigin: http://preview.hd.website.com\r\nAccept-Language:
zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3\r\nContent-Type:
application/x-www-form-urlencoded\r\nAccept:"..., 47616, 0, NULL, NULL) = 1331
<0.000026>
15:48:48.876269 write(1, "00003c5e:website.clireq[000a:ffffffff]: POST
/token/GetToken/t505 HTTP/1.1\n", 74) = 74 <0.000030>
15:48:48.876357 write(1, "00003c5e:website.clihdr[000a:ffffffff]: Host:
preview\n", 53) = 53 <0.000026>
15:48:48.876431 write(1, "00003c5e:website.clihdr[000a:ffffffff]:
ember-fnapp.website.com\n", 62) = 62 <0.000037>
15:48:48.876516 write(1, "00003c5e:website.clihdr[000a:ffffffff]: h: 296\n",
46) = 46 <0.000026>
15:48:48.876590 write(1, "00003c5e:website.clihdr[000a:ffffffff]: S 9_1 like
Mac OS X\n", 59) = 59 <0.000025>
15:48:48.876663 write(1, "00003c5e:website.clihdr[000a:ffffffff]:
AppleWebKit/601.1.46 (KHTML, like Gecko) Ver\n", 84) = 84 <0.000025>
15:48:48.876737 write(1, "00003c5e:website.clihdr[000a:ffffffff]: on/9.0
Mobile/13B\n", 57) = 57 <0.000026>
15:48:48.876810 write(1, "00003c5e:website.clihdr[000a:ffffffff]: 3
Safari/601.1 (comp\n", 60) = 60 <0.000025>
15:48:48.876883 write(1, "00003c5e:website.clihdr[000a:ffffffff]: ible;
Baiduspider-render/2.0;\n", 69) = 69 <0.000025>
15:48:48.876999 write(1, "00003c5e:website.clihdr[000a:ffffffff]:
http://www.baidu.com\n", 60) = 60 <0.000016>
15:48:48.877261 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 12 <0.000029>
15:48:48.877334 fcntl(12, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 <0.000024>
15:48:48.877407 setsockopt(12, SOL_TCP, TCP_NODELAY, [1], 4) = 0 <0.000026>
15:48:48.877482 connect(12, {sa_family=AF_INET, sin_port=htons(9999),
sin_addr=inet_addr("10.201.167.125")}, 16) = -1 EINPROGRESS (Operation now in
progress) <0.000055>
15:48:48.877593 epoll_wait(3, {}, 500, 0) = 0 <0.000034>
15:48:48.877678 sendto(12, "POST /token/GetToken/t505 HTTP/1.1\r\nHost:
preview-member-fnapp.website.com\r\nContent-Length: 296\r\nUser-Agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46
(KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1 (compatible;
Baiduspider-render/2.0;
+http://www.baidu.com/search/spider.html)\r\nProxy-Connection:
keep-alive\r\nOrigin: http://preview.hd.website.com\r\nAccept-Language:
zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3\r\nContent-Type:
application/x-www-form-urlencoded\r\nAccept:"..., 1087,
MSG_DONTWAIT|MSG_NOSIGNAL, NULL, 0) = 1087 <0.000043>
15:48:48.877813 recvfrom(10, 0x2722a6b, 47320, 0, 0, 0) = -1 EAGAIN (Resource
temporarily unavailable) <0.000028>
15:48:48.877921 epoll_ctl(3, EPOLL_CTL_ADD, 10, {EPOLLIN|0x2000, {u32=10,
u64=10}}) = 0 <0.000067>
15:48:48.878043 epoll_wait(3, {}, 500, 0) = 0 <0.000024>
15:48:48.878112 recvfrom(12, "HTTP/1.1 404 Not Found\r\nServer: nginx\r\nDate:
Tue, 06 Jun 2017 07:48:48 GMT\r\nContent-Type: text/html\r\nContent-Length:
162\r\nConnection: close\r\n\r\n<html>\r\n<head><title>404 Not
Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404 Not
Found</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n",
47616, 0, NULL, NULL) = 305 <0.000025>
15:48:48.878321 write(1, "00003c5e:no_server.srvrep[000a:000c]: HTTP/1.1 404
Not Found\n", 61) = 61 <0.000035>
15:48:48.878405 write(1, "00003c5e:no_server.srvhdr[000a:000c]: Server:
nginx\n", 52) = 52 <0.000025>
15:48:48.878477 write(1, "00003c5e:no_server.srvhdr[000a:000c]: 2017 07:48:48
GMT\n", 56) = 56 <0.000024>
15:48:48.878547 write(1, "00003c5e:no_server.srvhdr[000a:000c]: text/html\n",
48) = 48 <0.000025>
15:48:48.878617 write(1, "00003c5e:no_server.srvhdr[000a:000c]: 162\n", 43) =
43 <0.000024>
15:48:48.878687 write(1, "00003c5e:no_server.srvhdr[000a:000c]: >\n", 40) = 40
<0.000024>
15:48:48.878785 epoll_wait(3, {}, 500, 0) = 0 <0.000024>
15:48:48.878851 sendto(10, "HTTP/1.1 404 Not Found\r\nServer: nginx\r\nDate:
Tue, 06 Jun 2017 07:48:48 GMT\r\nContent-Type: text/html\r\nContent-Length:
162\r\nConnection: close\r\nConnection: close\r\n\r\n<html>\r\n<head><title>404
Not Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404 Not
Found</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n",
324, MSG_DONTWAIT|MSG_NOSIGNAL, NULL, 0) = 324 <0.000035>
15:48:48.878999 recvfrom(12, 0x2609fd4, 64000, 0, 0, 0) = -1 EAGAIN (Resource
temporarily unavailable) <0.000027>
15:48:48.879074 epoll_ctl(3, EPOLL_CTL_ADD, 12, {EPOLLIN|0x2000, {u32=12,
u64=12}}) = 0 <0.000024>
15:48:48.879142 epoll_wait(3, {}, 500, 16) = 0 <0.016111>
15:48:48.895307 epoll_wait(3, {}, 500, 0) = 0 <0.000028>
15:48:48.895385 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 13 <0.000031>
15:48:48.895462 fcntl(13, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 <0.000026>
15:48:48.895534 setsockopt(13, SOL_TCP, TCP_NODELAY, [1], 4) = 0 <0.000027>
15:48:48.895608 setsockopt(13, SOL_TCP, TCP_QUICKACK, [0], 4) = 0 <0.000027>
15:48:48.895680 connect(13, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("10.212.129.112")}, 16) = -1 EINPROGRESS (Operation now in
progress) <0.000042>
15:48:48.895776 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 14 <0.000031>
15:48:48.895852 fcntl(14, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 <0.000027>
15:48:48.895926 setsockopt(14, SOL_TCP, TCP_NODELAY, [1], 4) = 0 <0.000030>
15:48:48.896004 setsockopt(14, SOL_TCP, TCP_QUICKACK, [0], 4) = 0 <0.000027>
15:48:48.896077 connect(14, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("10.201.167.31")}, 16) = -1 EINPROGRESS (Operation now in
progress) <0.000039>
15:48:48.896172 epoll_wait(3, {}, 500, 0) = 0 <0.000027>
15:48:48.896244 connect(13, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("10.212.129.112")}, 16) = 0 <0.000036>
15:48:48.896328 connect(14, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("10.201.167.31")}, 16) = 0 <0.000027>
15:48:48.896404 recvfrom(13, 0, 2147483647, 16480, 0, 0) = -1 EAGAIN (Resource
temporarily unavailable) <0.000027>
15:48:48.896478 setsockopt(13, SOL_SOCKET, SO_LINGER, {onoff=1, linger=0}, 8) =
0 <0.000027>
15:48:48.896551 close(13) = 0 <0.000046>
15:48:48.896643 recvfrom(14, 0, 2147483647, 16480, 0, 0) = -1 EAGAIN (Resource
temporarily unavailable) <0.000023>
15:48:48.896714 setsockopt(14, SOL_SOCKET, SO_LINGER, {onoff=1, linger=0}, 8) =
0 <0.000024>
15:48:48.896780 close(14) = 0 <0.000037>
15:48:48.896860 epoll_wait(3, {{EPOLLIN|0x2000, {u32=10, u64=10}}}, 500, 346) =
1 <0.069467>
15:48:48.966414 recvfrom(10, "", 47320, 0, NULL, NULL) = 0 <0.000035>
15:48:48.966538 setsockopt(12, SOL_SOCKET, SO_LINGER, {onoff=1, linger=0}, 8) =
0 <0.000026>
15:48:48.966622 close(12) = 0 <0.000068>
At 2017-05-31 13:38:52, "Willy Tarreau" <[email protected]> wrote:
>On Wed, May 31, 2017 at 10:15:56AM +0800, siclesang wrote:
>> i am sorry
>> -d output
>> 954722 000513c:xxxx.accept(0008)=000a from [10.201.10.11:10037]
>> 954723 000513c:xxxx.clihdr[000a:ffffffff] POST /coupon/show/a511 HTTP/1.1
>> 954724 000513c:xxxx.clihdr[000a:ffffffff] Connection: keep-alive
>> 954725 000513c:xxxx.clihdr[000a:ffffffff] ent-Type: application/x-www-form-ur
>> 954726 000513c:xxxx.clihdr[000a:ffffffff] ncoded
>> 954727 000513c:xxxx.clihdr[000a:ffffffff] gth: 686
>
>Wow, you'll definitely need to run strace over the process as something is
>obviously wrong here! Please run "strace -vxttTs500 -o strace.log haproxy -d
>-f ...." and post the strace.log file.
>
>Thanks,
>Willy