mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
raise timeouts
This commit is contained in:
@@ -29,7 +29,7 @@ const defaultSendBufSize = 16384
|
||||
|
||||
func flushConnection(b *testing.B, c net.Conn, buf []byte) {
|
||||
c.Write([]byte("PING\r\n"))
|
||||
c.SetReadDeadline(time.Now().Add(50 * time.Millisecond))
|
||||
c.SetReadDeadline(time.Now().Add(500 * time.Millisecond))
|
||||
n, err := c.Read(buf)
|
||||
c.SetReadDeadline(time.Time{})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user