[grid] Align Router-Node read timeout with session pageLoad capability#17211
[grid] Align Router-Node read timeout with session pageLoad capability#17211
Conversation
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
Review Summary by Qodo
WalkthroughsDescription• Align Router read timeout with session pageLoad capability to prevent premature connection closure • Implement per-session timeout calculation using max(pageLoad, nodeTimeout) + 30s buffer • Cache node session timeouts to avoid repeated HTTP calls to /se/grid/node/status • Key HttpClient cache by (nodeUri, effectiveTimeout) for proper connection pooling File Changes1. java/src/org/openqa/selenium/grid/router/HandleSession.java
|
Code Review by Qodo
1.
|
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
SeleniumHQ#17211) * [grid] Align Router-Node read timeout with session pageLoad capability * Fix review comment --------- Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
🔗 Related Issues
💥 What does this PR do?
HandleSession computes an effective read timeout per (nodeUri, timeout) pair:
timeouts.pageLoadfrom the session's WebDriver capabilities (the same value the browser will honour for navigation commands).genuinely different timeouts each get their own.
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes