Commit 99e8cdfa authored by alexstocks's avatar alexstocks

modify package header index in session.go

parent 676fe3f1
...@@ -14,14 +14,13 @@ import ( ...@@ -14,14 +14,13 @@ import (
"errors" "errors"
"fmt" "fmt"
"net" "net"
"runtime"
"sync" "sync"
"sync/atomic" "sync/atomic"
"time" "time"
) )
import ( import (
"runtime"
log "github.com/AlexStocks/log4go" log "github.com/AlexStocks/log4go"
) )
...@@ -327,7 +326,6 @@ func (this *Session) WritePkg(pkg interface{}) error { ...@@ -327,7 +326,6 @@ func (this *Session) WritePkg(pkg interface{}) error {
// for codecs // for codecs
func (this *Session) WriteBytes(pkg []byte) error { func (this *Session) WriteBytes(pkg []byte) error {
// this.conn.SetWriteDeadline(time.Now().Add(this.rDeadline))
this.conn.SetWriteDeadline(time.Now().Add(this.wDeadline)) this.conn.SetWriteDeadline(time.Now().Add(this.wDeadline))
_, err := this.write(pkg) _, err := this.write(pkg)
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment