()
| 25 | } |
| 26 | |
| 27 | func (sc *ServerConfig) defaults() { |
| 28 | if sc.PingInterval == 0 { |
| 29 | sc.PingInterval = time.Second * 10 |
| 30 | } |
| 31 | |
| 32 | if sc.MaxConcurrentStreams <= 0 { |
| 33 | sc.MaxConcurrentStreams = 1024 |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // Server defines an HTTP/2 entity that can handle HTTP/2 connections. |
| 38 | type Server struct { |
no outgoing calls