don't export checkIsNetTimeout

This commit is contained in:
mappu 2016-11-29 19:43:32 +13:00
parent 56c6b7b352
commit 5713b58c7c
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ func (cs ConnectionState) Format() string {
}
}
func CheckIsNetTimeout(err error) bool {
func checkIsNetTimeout(err error) bool {
if err == nil {
return false
}

View File

@ -324,7 +324,7 @@ func (this *HubConnection) worker() {
this.conn.SetReadDeadline(time.Now().Add(SEND_KEEPALIVE_EVERY))
nbytes, err = this.conn.Read(readBuff)
if CheckIsNetTimeout(err) {
if checkIsNetTimeout(err) {
// No data before read deadline
err = nil