-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rather than appling a maximum count, apply an overall timeout to
reading interim responses to match the read timeout, if a read timeout is configured and the NE_SESSFLAG_1XXTIMEOUT flag is set - which defaults to set (issue #94): * src/ne_session.h (NE_SESSFLAG_1XXTIMEOUT): New flag. * src/ne_session.c (ne_session_create): Set NE_SESSFLAG_1XXTIMEOUT to default on. * src/ne_request.c (send_request): Use the session read timeout to avoid looping reading interim responses indefinitely, rather than hard-coding a maximum number of responses. * test/request.c (fail_request_with_error): Set read timeout. (fail_excess_1xx): Adjust expected error, send more interim responses.
- Loading branch information
Showing
4 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters