Skip to content

客户端请求超时 #315

@jacs

Description

@jacs

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions