Skip to content

Commit

Permalink
v2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ginuerzh committed Jun 21, 2019
1 parent 9ec2bb9 commit 7b8bf24
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion gost.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"io"
"math/big"
"net"
"net/http"
"strings"
"sync"
"time"
Expand All @@ -19,7 +20,7 @@ import (
)

// Version is the gost version.
const Version = "2.8.0"
const Version = "2.8.1"

// Debug is a flag that enables the debug log.
var Debug bool
Expand Down Expand Up @@ -200,3 +201,11 @@ func splitLine(line string) []string {
}
return ss
}

func connStateCallback(conn net.Conn, cs http.ConnState) {
switch cs {
case http.StateNew:
conn.SetReadDeadline(time.Now().Add(30 * time.Second))
default:
}
}

0 comments on commit 7b8bf24

Please sign in to comment.