mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 03:45:41 +03:00
nomad: remove magic bytes
This commit is contained in:
10
nomad/rpc.go
10
nomad/rpc.go
@@ -24,16 +24,6 @@ const (
|
||||
rpcTLS = 0x04
|
||||
)
|
||||
|
||||
const (
|
||||
// rpcHTTPSMagic is used to detect an incoming HTTPS
|
||||
// request. TLS starts with the 0x16 magic byte.
|
||||
rpcHTTPSMagic = 0x16
|
||||
|
||||
// rpcHTTPMagic is used to detect an incoming HTTP
|
||||
// request. The request starts with 'HTTP'
|
||||
rpcHTTPMagic = 0x48
|
||||
)
|
||||
|
||||
const (
|
||||
// maxQueryTime is used to bound the limit of a blocking query
|
||||
maxQueryTime = 300 * time.Second
|
||||
|
||||
Reference in New Issue
Block a user