~sircmpwn/tokidoki-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] auth/imap: close IMAP connection earlier

Details
Message ID
<20220524103422.102800-1-contact@emersion.fr>
DKIM signature
missing
Download raw message
Patch: +1 -0
No need to keep it around after Authenticate succeeds while handling
the HTTP request (via next.ServeHTTP).
---
 auth/imap.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/auth/imap.go b/auth/imap.go
index 268cedfa63f2..ca1bd0ceba78 100644
--- a/auth/imap.go
+++ b/auth/imap.go
@@ -57,6 +57,7 @@ func (prov *IMAPProvider) doAuth(next http.Handler,
		http.Error(w, "Invalid username or password", http.StatusUnauthorized)
		return
	}
	conn.Close()

	authCtx := AuthContext{
		AuthMethod: "imap",
-- 
2.36.1
Details
Message ID
<20220524114912.165417-1-ch@bitfehler.net>
In-Reply-To
<20220524103422.102800-1-contact@emersion.fr> (view parent)
DKIM signature
missing
Download raw message
Thanks!
Reply to thread Export thread (mbox)