forked from External/ergo
don't wait for writing to complete
This commit is contained in:
parent
9960089226
commit
c0dc733351
3 changed files with 20 additions and 16 deletions
|
|
@ -77,9 +77,14 @@ func (socket *Socket) WriteLine(line string) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
if _, err = socket.writer.WriteString(CRLF); socket.isError(err, W) {
|
||||
return
|
||||
}
|
||||
|
||||
if err = socket.writer.Flush(); socket.isError(err, W) {
|
||||
return
|
||||
}
|
||||
|
||||
if DEBUG_NET {
|
||||
log.Printf("%s ← %s", socket, line)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue