2017-10-31 09:25:44 +00:00
|
|
|
package client
|
|
|
|
|
2017-11-01 09:01:23 +00:00
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
"time"
|
|
|
|
)
|
2017-10-31 09:25:44 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
// DefaultRequestTimeout is the default timeout for client request.
|
|
|
|
DefaultRequestTimeout = 20 * time.Second
|
|
|
|
|
|
|
|
// DefaultPendingMessages is the default number of pending messages
|
|
|
|
// handled by Client and Server.
|
|
|
|
DefaultPendingMessages = 32 * 1024
|
|
|
|
)
|
2017-11-01 09:01:23 +00:00
|
|
|
|
|
|
|
var uint64Type = reflect.TypeOf(uint64(0))
|