Only send packets via UDP if UDP communication is possible.
When no session key is known for a node, or when it is doing PMTU discovery but no MTU probes have returned yet, packets are sent via TCP. Some logic is added to make sure intermediate nodes continue forwarding via TCP. The per-node packet queue is now no longer necessary and has been removed.
This commit is contained in:
parent
b069da90d6
commit
67df7fb7e1
8 changed files with 27 additions and 42 deletions
|
|
@ -283,7 +283,5 @@ bool ans_key_h(connection_t *c)
|
|||
if(from->options & OPTION_PMTU_DISCOVERY && !from->mtuprobes)
|
||||
send_mtu_probe(from);
|
||||
|
||||
flush_queue(from);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue