We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ec2bb9 commit 7b8bf24Copy full SHA for 7b8bf24
gost.go
@@ -11,6 +11,7 @@ import (
11
"io"
12
"math/big"
13
"net"
14
+ "net/http"
15
"strings"
16
"sync"
17
"time"
@@ -19,7 +20,7 @@ import (
19
20
)
21
22
// Version is the gost version.
-const Version = "2.8.0"
23
+const Version = "2.8.1"
24
25
// Debug is a flag that enables the debug log.
26
var Debug bool
@@ -200,3 +201,11 @@ func splitLine(line string) []string {
200
201
}
202
return ss
203
204
+
205
+func connStateCallback(conn net.Conn, cs http.ConnState) {
206
+ switch cs {
207
+ case http.StateNew:
208
+ conn.SetReadDeadline(time.Now().Add(30 * time.Second))
209
+ default:
210
+ }
211
+}
0 commit comments