1
0
Fork 0
forked from External/ergo

fix race in idle timeout; fix some string trimming; fix some replies

This commit is contained in:
Jeremy Latt 2014-02-17 18:10:52 -08:00
parent 1a7f56a903
commit bd3ca4ae47
4 changed files with 20 additions and 5 deletions

View file

@ -59,7 +59,7 @@ func (socket *Socket) readLines() {
break
}
line = strings.TrimSpace(line)
line = strings.TrimRight(line, "\r\n")
if len(line) == 0 {
continue
}