From 71c08648544fb26271bd2edf6a9fdd9cbb11e49b Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Tue, 21 Apr 2015 17:25:53 -0700 Subject: [PATCH] a small fix --- transport/http2_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/http2_client.go b/transport/http2_client.go index 301c7091..8fde59d2 100644 --- a/transport/http2_client.go +++ b/transport/http2_client.go @@ -119,7 +119,7 @@ func newHTTP2Client(addr string, opts *ConnectOptions) (_ ClientTransport, err e // place the ClientTransport construction into a separate function to make // things clear. if timeout > 0 { - timeout = opts.Timeout - time.Since(startT) + timeout -= time.Since(startT) } conn, connErr = ccreds.Handshake(addr, conn, timeout) break