mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Add documentation on {C,S}METHOD parsing behaviour
This commit is contained in:
parent
809b636b6e
commit
0d3894dbbc
2 changed files with 12 additions and 0 deletions
4
changes/ticket7362
Normal file
4
changes/ticket7362
Normal file
|
@ -0,0 +1,4 @@
|
|||
o Minor bugfix (pluggable transport):
|
||||
- Do not kill a managed proxy if one of its transport configurations
|
||||
emits a method error. Instead log a warning and continue processing
|
||||
method arguments. Closes ticket 7362.
|
|
@ -903,12 +903,20 @@ handle_proxy_line(const char *line, managed_proxy_t *mp)
|
|||
if (mp->conf_state != PT_PROTO_ACCEPTING_METHODS)
|
||||
goto err;
|
||||
|
||||
/* Log the error but do not kill the managed proxy.
|
||||
* A proxy may contain several transports and if one
|
||||
* of them is misconfigured, we still want to use
|
||||
* the other transports. A managed proxy with no usable
|
||||
* transports will log a warning.
|
||||
* See https://gitlab.torproject.org/tpo/core/tor/-/issues/7362
|
||||
* */
|
||||
parse_client_method_error(line);
|
||||
return;
|
||||
} else if (!strcmpstart(line, PROTO_SMETHOD_ERROR)) {
|
||||
if (mp->conf_state != PT_PROTO_ACCEPTING_METHODS)
|
||||
goto err;
|
||||
|
||||
/* Log the error but do not kill the managed proxy */
|
||||
parse_server_method_error(line);
|
||||
return;
|
||||
} else if (!strcmpstart(line, PROTO_CMETHOD)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue