free_connection_partially(): also reset remote protocol version infos
The used remote protocol can change between two reconnects, aka if the remote side has enabled/disabled for example their ExperimentalProtocols setting.
This commit is contained in:
parent
32e5c5bb7c
commit
291a59b5b7
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ void free_connection_partially(connection_t *c) {
|
|||
closesocket(c->socket);
|
||||
|
||||
c->socket = -1;
|
||||
|
||||
c->protocol_major = 0;
|
||||
c->protocol_minor = 0;
|
||||
c->allow_request = 0;
|
||||
}
|
||||
|
||||
void free_connection(connection_t *c) {
|
||||
|
|
Loading…
Reference in a new issue