File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"net"
6
6
"net/http"
7
+ "time"
7
8
8
9
"github.com/fullstorydev/relay-core/relay/traffic"
9
10
)
@@ -75,8 +76,9 @@ func (service *Service) Port() int {
75
76
func (service * Service ) Start (host string , port int ) error {
76
77
address := fmt .Sprintf ("%v:%v" , host , port )
77
78
server := & http.Server {
78
- Addr : address ,
79
- Handler : service .mux ,
79
+ Addr : address ,
80
+ Handler : service .mux ,
81
+ ReadHeaderTimeout : 2 * time .Second ,
80
82
}
81
83
listener , err := net .Listen ("tcp" , address )
82
84
if err != nil {
Original file line number Diff line number Diff line change 1
1
package version
2
2
3
- const RelayRelease = "v0.3.0 " // TODO set this from tags automatically during git commit
3
+ const RelayRelease = "v0.3.1 " // TODO set this from tags automatically during git commit
You can’t perform that action at this time.
0 commit comments