Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

客户端请求超时 #315

Open
jacs opened this issue Dec 22, 2022 · 1 comment
Open

客户端请求超时 #315

jacs opened this issue Dec 22, 2022 · 1 comment

Comments

@jacs
Copy link

jacs commented Dec 22, 2022

Describe the bug
程序运行一段时间,在不固定的时刻,客户端发送请求到服务端,设置请求超时15秒,服务端收到请求立即发送了响应,但是客户端却没有收到响应,直至30分钟后才收到响应,直接以超时处理了。
日志如下:
客户端:30分钟后收到响应
2022-12-22 00:35:36,572 DEBUG [RpcRemoting#367] [XNIO-1 task-23] Send request, requestId=11754
2022-12-22 00:35:51,572 WARN [RpcResponseResolver#131] [XNIO-1 task-23] Rpc invocation timeout[responseCommand TIMEOUT]! the address is 172.26.10.250:8801
2022-12-22 01:05:46,552 WARN [RpcResponseProcessor#80] [Bolt-default-executor-8-thread-25] Cannot find InvokeFuture, maybe already timeout, id=11754, from=172.26.10.250:8801

服务端:收到请求立刻发送了响应
2022-12-22 00:35:36,572 DEBUG [RpcRequestProcessor#353] [Rpc-netty-server-worker-1-thread-1] Rpc request received! requestId=11754, from 172.26.10.250:47746
2022-12-22 00:35:36,572 DEBUG [RpcRequestProcessor#355] [Rpc-netty-server-worker-1-thread-1] request id 11754 currenTimestamp 1671669336572 - arriveTime 1671669336572 = server cost 0 < timeout 15000.
2022-12-22 00:35:36,573 DEBUG [RpcRequestProcessor$1#187] [Rpc-netty-server-worker-1-thread-1] Rpc response sent! requestId=11754. The address is 172.26.10.250:47746

Expected behavior

服务端能立刻接收到响应

Actual behavior

服务端30分钟后才接收到响应

Steps to reproduce

正常启动服务端和客户端,客户端发送rpc请求

Minimal yet complete reproducer code (or GitHub URL to code)

Environment

  • SOFABolt version: 1.6.2
  • JVM version (e.g. java -version): openjdk version "1.8.0_292"
  • OS version (e.g. uname -a): Linux 3.10.0-1160.15.2.el7.x86_64
  • Maven version: 3.8.1
  • IDE version:
@chuailiwu
Copy link
Collaborator

框架层没有30分这个逻辑,有抓包确认响应是否及时发送了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants