[SERVER-66111] Curl implementation of HTTPClient should respect default timeouts Created: 02/May/22  Updated: 29/Oct/23  Resolved: 06/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.15, 6.0.0-rc7, 5.0.10, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Spencer Jackson Assignee: Gabriel Marks
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0, v5.0, v4.4
Sprint: Security 2022-05-16
Participants:

 Description   

HTTPClient defines default timeouts for whole requests and for connection establishment.

The Windows implementation sets these defaults as its Client's default timeout properties.

The Curl implementation does not.

This can cause requests to hang indefinitely without returning an error if the remote endpoint doesn't return a result.



 Comments   
Comment by Githook User [ 20/May/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-66111 Set default timeouts in HttpClient
Branch: v6.0
https://github.com/mongodb/mongo/commit/a8f474bb0428b37efc4e48f74a7b881f5ef49213

Comment by Githook User [ 20/May/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-66111 Add test for unresponsive IAM server
Branch: v6.0
https://github.com/10gen/mongo-enterprise-modules/commit/b68915fbd5ab58f97e182b2890ff141e1f4cc77e

Comment by Githook User [ 18/May/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-66111 Set default timeouts in HttpClient
Branch: v4.4
https://github.com/mongodb/mongo/commit/b82d63b3529bab2abb2a4a6e6c688b9f31a105dc

Comment by Githook User [ 18/May/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-66111 Add test for unresponsive IAM server
Branch: v4.4
https://github.com/10gen/mongo-enterprise-modules/commit/c866f73cb90cbf4ab36a70fb910770117e1bce32

Comment by Githook User [ 18/May/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-66111 Set default timeouts in HttpClient
Branch: v5.0
https://github.com/mongodb/mongo/commit/377deab31ae8d2d8c93882734a4fc398d68956cb

Comment by Githook User [ 18/May/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-66111 Add test for unresponsive IAM server
Branch: v5.0
https://github.com/10gen/mongo-enterprise-modules/commit/817f8ec8dc7c07778c68fc7d073154461f73b1d5

Comment by Githook User [ 05/May/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-66111 Set default timeouts in HttpClient
Branch: master
https://github.com/mongodb/mongo/commit/39a79932ad678b30b052e099323fd086679aa8a3

Comment by Githook User [ 05/May/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-66111 Add test for unresponsive IAM server
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/535d1a0eea25485e19b79e4d1b872a3b97c7ad95

Generated at Thu Feb 08 06:04:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.