Rename -timeout to -idle-timeout.
-timeout collides with go test's flags. Change-Id: Icfc954915a61f1bb4d0acc8f02ec8a482ea10158 Reviewed-on: https://boringssl-review.googlesource.com/8188 Reviewed-by: David Benjamin <davidben@google.com>
This commit is contained in:
parent
3dcec458f1
commit
01784b44b9
@ -53,7 +53,7 @@ var (
|
|||||||
resourceDir = flag.String("resource-dir", ".", "The directory in which to find certificate and key files.")
|
resourceDir = flag.String("resource-dir", ".", "The directory in which to find certificate and key files.")
|
||||||
fuzzer = flag.Bool("fuzzer", false, "If true, tests against a BoringSSL built in fuzzer mode.")
|
fuzzer = flag.Bool("fuzzer", false, "If true, tests against a BoringSSL built in fuzzer mode.")
|
||||||
transcriptDir = flag.String("transcript-dir", "", "The directory in which to write transcripts.")
|
transcriptDir = flag.String("transcript-dir", "", "The directory in which to write transcripts.")
|
||||||
timeout = flag.Int("timeout", 15, "The number of seconds to wait for a read or write to bssl_shim.")
|
idleTimeout = flag.Duration("idle-timeout", 15*time.Second, "The number of seconds to wait for a read or write to bssl_shim.")
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -315,7 +315,7 @@ func (t *timeoutConn) Write(b []byte) (int, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func doExchange(test *testCase, config *Config, conn net.Conn, isResume bool) error {
|
func doExchange(test *testCase, config *Config, conn net.Conn, isResume bool) error {
|
||||||
conn = &timeoutConn{conn, time.Duration(*timeout) * time.Second}
|
conn = &timeoutConn{conn, *idleTimeout}
|
||||||
|
|
||||||
if test.protocol == dtls {
|
if test.protocol == dtls {
|
||||||
config.Bugs.PacketAdaptor = newPacketAdaptor(conn)
|
config.Bugs.PacketAdaptor = newPacketAdaptor(conn)
|
||||||
|
Loading…
Reference in New Issue
Block a user