Development discussion of WireGuard
 help / color / mirror / Atom feed
* [PATCH] Lower log level on handshake race condition
@ 2022-02-18 10:08 Laura Zelenku
  0 siblings, 0 replies; only message in thread
From: Laura Zelenku @ 2022-02-18 10:08 UTC (permalink / raw)
  To: WireGuard mailing list

This issue is caused by "handshake initiation must be consumed first"
error. It is quite weird
because this is happening during responding on received Handshake
initiation message but probably
status of handshake is not set correctly in single thread for single peer.

Signed-off-by: Laura Zelenku <laura.zelenku@wandera.com>
---
 device/send.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/device/send.go b/device/send.go
index 0a7135f..0f0905a 100644
--- a/device/send.go
+++ b/device/send.go
@@ -144,7 +144,7 @@ func (peer *Peer) SendHandshakeResponse() error {

        response, err := peer.device.CreateMessageResponse(peer)
        if err != nil {
-               peer.device.log.Errorf("%v - Failed to create response
message: %v", peer, err)
+               peer.device.log.Verbosef("%v - Failed to create
response message: %v", peer, err)
                return err
        }

-- 
2.32.0 (Apple Git-132)

-- 
*IMPORTANT NOTICE*: This email, its attachments and any rights attaching 
hereto are confidential and intended exclusively for the person to whom the 
email is addressed. If you are not the intended recipient, do not read, 
copy, disclose or use the contents in any way. Wandera accepts no liability 
for any loss, damage or consequence resulting directly or indirectly from 
the use of this email and attachments.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-18 10:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-18 10:08 [PATCH] Lower log level on handshake race condition Laura Zelenku

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).