mirror of
https://github.com/go-i2p/go-sam-go.git
synced 2025-07-07 08:01:25 -04:00
OK so the bug has to be in common then
This commit is contained in:
@ -59,7 +59,7 @@ func (sam SAM) NewGenericSessionWithSignatureAndPorts(style, id, from, to string
|
||||
"total": len(scmsg),
|
||||
}).Error("Incomplete write to SAM connection")
|
||||
conn.Close()
|
||||
return nil, oops.Errorf("incomplete write to connection")
|
||||
return nil, oops.Errorf("incomplete write to connection: wrote %d bytes, expected %d bytes", n, len(scmsg))
|
||||
}
|
||||
buf := make([]byte, 4096)
|
||||
n, err = conn.Read(buf)
|
||||
|
Reference in New Issue
Block a user