-
Notifications
You must be signed in to change notification settings - Fork 289
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
Deprecate TTFB, RESP_TIMEOUT, introduce MAX_CONCURRENT_REQUESTS #8839
base: master
Are you sure you want to change the base?
Conversation
89c03f3
to
0ce2fe1
Compare
...th2/src/main/java/tech/pegasys/teku/networking/eth2/rpc/core/Eth2IncomingRequestHandler.java
Fixed
Show fixed
Hide fixed
...th2/src/main/java/tech/pegasys/teku/networking/eth2/rpc/core/Eth2OutgoingRequestHandler.java
Outdated
Show resolved
Hide resolved
this.asyncRunner = asyncRunner; | ||
this.rpcMethod = rpcMethod; | ||
concurrentRequestsSemaphore = new Semaphore(maxConcurrentRequests); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 ... this is a blocking approach, with a tight timeout... should we have an actual async queue here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I realised that, actually I am working on a different idea right now. Should be done soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the approach to use ThrottlingTaskQueue
which makes much more sense
networking/p2p/src/test/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java
Fixed
Show fixed
Hide fixed
networking/p2p/src/test/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java
Fixed
Show fixed
Hide fixed
9d5ea69
to
acf6314
Compare
PR Description
Main changes are in
Eth2IncomingRequestHandler
,Eth2OutgoingRequestHandler
andRpcHandler
Reintroduced the timeouts as constants to handle slow servers. Furthermore, they could be should probably be configured per different methods. (as per the consensus-specs PR describes)
Fixed Issue(s)
related to #8803
Documentation
doc-change-required
label to this PR if updates are required.Changelog