[alibaba/tengine]tengine 2.2.2 使用http2协议 下 psot方法超时504;

2024-06-26 670 views
4

CentOS release 6.6 (Final Tengine version: Tengine/2.2.2 (nginx/1.8.1)

为了提高系统稳定性,决定从Tengine/2.1.2 升级 到最新版本Tengine/2.2.2 。 但是发现上传服务504; 测试结论: 1:回退到2.1.2 服务正常,仍然使用http2; 2:Tengine/2.2.2 下用http1.1 服务正常; 3:Tengine/2.2.2 下用http2 服务超时,504退出;

strace 内容太多无法写 Process 903755 attached - interrupt to quit epoll_wait(18,

{{EPOLLIN, {u32=2174996720, u64=140052468584688}}}, 512, 30776) = 1 write(10, "2018/08/20 11:10:03 [debug] 9037"..., 70) = 70 accept4(14, {sa_family=AF_INET, sin_port=htons(61535), sin_addr=inet_addr("10.252.134.2")}, [16], SOCK_NONBLOCK) = 4 write(10, "2018/08/20 11:10:03 [debug] 9037"..., 79) = 79 。。。。

回答

0

这个是结尾部分 卡在这里 等超时

write(10, "2018/08/20 11:10:19 [debug] 9037"..., 66) = 66 close(21) = 0 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 63) = 63 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 69) = 69 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 21 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 53) = 53 ioctl(21, FIONBIO, [1]) = 0 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 83) = 83 epoll_ctl(18, EPOLL_CTL_ADD, 21, {EPOLLIN|EPOLLOUT|EPOLLET|0x2000, {u32=2174997393, u64=140052468585361}}) = 0 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 84) = 84 connect(21, {sa_family=AF_INET, sin_port=htons(8005), sin_addr=inet_addr("10.135.5.137")}, 16) = -1 EINPROGRESS (Operation now in progress) write(10, "2018/08/20 11:10:19 [debug] 9037"..., 69) = 69 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 84) = 84 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 83) = 83 epoll_wait(18, {{EPOLLOUT, {u32=2174997393, u64=140052468585361}}}, 512, 5000) = 1 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 130) = 130 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 78) = 78 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 70) = 70 getsockopt(21, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 75) = 75 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 71) = 71 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 70) = 70 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 77) = 77 writev(21, [{"POST /ZEXwVuTsRZb/zhuanzhuan/284"..., 513}, {"\r\n--140182a5-88dd-4bea-9287-6c5e"..., 44}], 2) = 557 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 62) = 62 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 78) = 78 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 78) = 78 write(10, "2018/08/20 11:10:19 [debug] 9037"..., 84) = 84 epoll_wait(18, ^C <unfinished ...> Process 903755 detached

2

同样遇到这个问题,目前我的解决方案是增加client_body_buffer_size,并关闭client_body_in_file_only,感觉问题在于POST数据过大的时候,不能写入缓存。

0

感谢答复,期待升级