Fixes and improvements

This commit is contained in:
Shtorm
2026-07-16 11:16:10 +03:00
parent a27453e4f7
commit 4624fd51b1
28 changed files with 1178 additions and 1474 deletions

View File

@@ -1215,6 +1215,7 @@ func (c *pollConn) pullLoop() {
payload, err := base64.StdEncoding.DecodeString(line)
if err != nil {
_ = resp.Body.Close()
cancel()
_ = c.closeWithError(fmt.Errorf("poll pull decode failed: %w", err))
return
}
@@ -1222,6 +1223,7 @@ func (c *pollConn) pullLoop() {
case c.rxc <- payload:
case <-c.closed:
_ = resp.Body.Close()
cancel()
return
}
}