Indefinite queuing for unconnected peers (Was: problem wireguard + ospf + unconnected tunnels)

Baptiste Jonglez baptiste at
Sat Jul 8 16:21:56 CEST 2017


The current approach is to queue all outgoing packets for an indefinite
amount of time when the peer is not connected or reachable.

I think it does not make much sense, and leads to the kind of issue you
mention here.  The initial goal was probably to queue packets just long
enough to be able to complete a handshake with the peer, which makes a lot
of sense (it would be annoying to drop the first packet of any outgoing
connection).  But the handshake should not take more than hundreds of

Maybe Wireguard should drop packets from this queue after a few seconds?
Would it be hard to implement?


On Tue, Jul 04, 2017 at 12:09:22AM +0300, ae wrote:
> situation
> 2 tunnels
> 1 normal - 2nd with unconnected ending
> + ospfd quagge
> At start everything works fine - but after ~ 30-60 seconds - the ospf stops working
> This is due to the fact that the ospf daemon sends packets from the same socket on different interfaces - and in the tunnel interface everything goes fine - but in the 2nd packets accumulate
> And after a certain accumulation - the socket of the demon daemon stops working on sending completely "No buffer space available "
> Is it possible to fix this with settings?

> _______________________________________________
> WireGuard mailing list
> WireGuard at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <>

More information about the WireGuard mailing list