[Asterisk-code-review] res_http_websocket: Add a client connection timeout (asterisk[master])
Kevin Harwell
asteriskteam at digium.com
Wed Jan 19 15:55:44 CST 2022
Attention is currently required from: Sean Bright.
Kevin Harwell has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/17867 )
Change subject: res_http_websocket: Add a client connection timeout
......................................................................
Patch Set 1:
(1 comment)
File include/asterisk/http_websocket.h:
https://gerrit.asterisk.org/c/asterisk/+/17867/comment/53172f51_b42cfd2d
PS1, Line 465: AST_OPTIONAL_API(struct ast_websocket *, ast_websocket_client_create_and_connect,
: (const char *uri, const char *protocols, struct ast_tls_config *tls_cfg,
: enum ast_websocket_result *result, int timeout), { return NULL;});
> Since `result` is effectively an "out" argument, I think `timeout` should be before it. […]
That makes sense and I like this idea. I've added an options struct and renamed the function.
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17867
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I5812f6f28d3d13adbc246517f87af177fa20ee9d
Gerrit-Change-Number: 17867
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Sean Bright <sean at seanbright.com>
Gerrit-Attention: Sean Bright <sean at seanbright.com>
Gerrit-Comment-Date: Wed, 19 Jan 2022 21:55:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Sean Bright <sean at seanbright.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220119/4e552b86/attachment.html>
More information about the asterisk-code-review
mailing list