support udp type
This commit is contained in:
1 parent
adcb2c1ea5
commit
f2999e3317
18 files changed
+556
-76
No files matched your search
+1
-1
@@ -40,6 +40,6 @@ func echoWorker(c *conn.Conn) {
|
||||
return
|
||||
}
|
||||
|
||||
c.Write(buff)
|
||||
c.WriteString(buff)
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -26,7 +26,7 @@ func TestEchoServer(t *testing.T) {
|
||||
timer := time.Now().Add(time.Duration(5) * time.Second)
|
||||
c.SetDeadline(timer)
|
||||
|
||||
c.Write(ECHO_TEST_STR)
|
||||
c.WriteString(ECHO_TEST_STR)
|
||||
|
||||
buff, err := c.ReadLine()
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user