You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reader use c.dld.rde && c.dld.rds to check if read deadline will be set.
Buf a writer use c.dld.wde && c.dld.dns to check if write deadline will be set.
Should it use c.dld.wde && c.dld.wds instead ?
func (c *Connection) wireWrite(d wiredata) {
f := &d.frame
// fmt.Printf("WWD01 f:[%v]\n", f)
switch f.Command {
case "\n": // HeartBeat frame
if c.dld.wde && c.dld.dns {
_ = c.netconn.SetWriteDeadline(time.Now().Add(c.dld.wdld))
}
Looking forward to your reply
The text was updated successfully, but these errors were encountered:
Hi , I have read the source code of stompngo and find something hard to understand.
Here's a reader go routine which can be set read timeout by conn.ReadDealLine
The reader use c.dld.rde && c.dld.rds to check if read deadline will be set.
Buf a writer use c.dld.wde && c.dld.dns to check if write deadline will be set.
Should it use c.dld.wde && c.dld.wds instead ?
Looking forward to your reply
The text was updated successfully, but these errors were encountered: