ing
This commit is contained in:
parent
3a437b10a4
commit
5edc46cefe
|
@ -13,7 +13,5 @@ type ServerHandler interface {
|
|||
|
||||
Handle(conn net.Conn, stopChan <-chan struct{}, doneChan chan<- struct{})
|
||||
|
||||
IsClientDisconnect(err error) bool
|
||||
|
||||
Validate()
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package server
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
"log"
|
||||
"net"
|
||||
)
|
||||
|
@ -30,10 +29,6 @@ func (sh *ServerHandlers) Handle(conn net.Conn, stopChan <-chan struct{}, doneCh
|
|||
log.Printf("Server.Handle")
|
||||
}
|
||||
|
||||
func (sh *ServerHandlers) IsClientDisconnect(err error) bool {
|
||||
return err == io.ErrUnexpectedEOF || err == io.EOF
|
||||
}
|
||||
|
||||
func (sh *ServerHandlers) Validate() {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user