diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-06-30 08:22:19 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-06-30 08:22:19 +0800 |
commit | 7625b07dd9a2a7b5c5a504c1276eea04596ac871 (patch) | |
tree | ce2a757cd4e0591fc15815b2dfae528ae517d36e /p2p/dial.go | |
parent | 72e2613a9fe3205fa5a67b72b832e03b2357ee88 (diff) | |
parent | 8f504063f465e0ca10c6bb53ee914d10a3d45c86 (diff) | |
download | go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar.gz go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar.bz2 go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar.lz go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar.xz go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar.zst go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.zip |
Merge branch 'release/0.9.34'v0.9.34
Diffstat (limited to 'p2p/dial.go')
-rw-r--r-- | p2p/dial.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/p2p/dial.go b/p2p/dial.go index b82d6d1f5..45cd8116b 100644 --- a/p2p/dial.go +++ b/p2p/dial.go @@ -196,7 +196,9 @@ func (t *dialTask) Do(srv *Server) { glog.V(logger.Detail).Infof("dial error: %v", err) return } - srv.setupConn(fd, t.flags, t.dest) + mfd := newMeteredConn(fd, false) + + srv.setupConn(mfd, t.flags, t.dest) } func (t *dialTask) String() string { return fmt.Sprintf("%v %x %v:%d", t.flags, t.dest.ID[:8], t.dest.IP, t.dest.TCP) |