Commit 99e8cdfa authored by alexstocks's avatar alexstocks

modify package header index in session.go

parent 676fe3f1
......@@ -14,14 +14,13 @@ import (
"errors"
"fmt"
"net"
"runtime"
"sync"
"sync/atomic"
"time"
)
import (
"runtime"
log "github.com/AlexStocks/log4go"
)
......@@ -327,7 +326,6 @@ func (this *Session) WritePkg(pkg interface{}) error {
// for codecs
func (this *Session) WriteBytes(pkg []byte) error {
// this.conn.SetWriteDeadline(time.Now().Add(this.rDeadline))
this.conn.SetWriteDeadline(time.Now().Add(this.wDeadline))
_, err := this.write(pkg)
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