Skip to content

Commit 61ecf13

Browse files
committed
update
1 parent b20cd59 commit 61ecf13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http2/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ func (sc *serverConn) closeStream(st *stream, err error) {
16431643
delete(sc.streams, st.id)
16441644
if len(sc.streams) == 0 {
16451645
sc.setConnState(http.StateIdle)
1646-
if sc.srv.IdleTimeout > 0 {
1646+
if sc.srv.IdleTimeout > 0 && sc.idleTimer != nil {
16471647
sc.idleTimer.Reset(sc.srv.IdleTimeout)
16481648
}
16491649
if h1ServerKeepAlivesDisabled(sc.hs) {

0 commit comments

Comments
 (0)