-
Notifications
You must be signed in to change notification settings - Fork 298
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
Deprecate TTFB, RESP_TIMEOUT, introduce MAX_CONCURRENT_REQUESTS #8839
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
networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandler.java
Outdated
Show resolved
Hide resolved
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
Shouldn't we remove the obsolete constants from // in seconds
int getTtfbTimeout();
// in seconds
int getRespTimeout(); |
this.asyncRunner = asyncRunner; | ||
this.rpcMethod = rpcMethod; | ||
concurrentRequestsQueue = ThrottlingTaskQueue.create(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.
As far as I understand here we are limiting ourselves for max concurrent outgoing requests? Do we have the code which enforces inbound limit?
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.
Do you mean The responder MAY penalise peers that concurrently open more than
MAX_CONCURRENT_REQUESTS streams for the same request type, for the protocol IDs defined in this specification.
? I was thinking it could be an incremental change and do it in a further PR since it is MAY instead of SHOULD/MUST.
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.
Oh, right! Fair point!
17e8938
to
b9e40de
Compare
I tried doing this and there were some test failures regarding unrecognised constants. Think should look more into it. |
b7efc1d
to
fff5517
Compare
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.
LGTM
fff5517
to
493f284
Compare
…TS (Consensys#8839)" This reverts commit d633566.
…ensys#8839) (cherry picked from commit d633566)
…ensys#8839) (cherry picked from commit d633566)
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