Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Sep 1, 2016
1 parent 6b26c75 commit 76351df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ func main() {
// stream multiplex
var session *smux.Session
if config.NoComp {
session, err = smux.Client(kcpconn, config.SockBuf/4096, 4096)
session, err = smux.Client(kcpconn, nil)
} else {
session, err = smux.Client(newCompStream(kcpconn), config.SockBuf/4096, 4096)
session, err = smux.Client(newCompStream(kcpconn), nil)
}
checkError(err)
return session
Expand Down
2 changes: 1 addition & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func newCompStream(conn net.Conn) *compStream {
// handle multiplex-ed connection
func handleMux(conn io.ReadWriteCloser, config *Config) {
// stream multiplex
mux, err := smux.Server(conn, config.SockBuf/4096, 4096)
mux, err := smux.Server(conn, nil)
if err != nil {
log.Println(err)
return
Expand Down

0 comments on commit 76351df

Please sign in to comment.