Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
9cd8c961
Commit
9cd8c961
authored
Apr 03, 2015
by
Felix Lange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p2p/discover: make packet processing less concurrent
parent
fc1d1f9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
udp.go
p2p/discover/udp.go
+4
-6
No files found.
p2p/discover/udp.go
View file @
9cd8c961
...
...
@@ -379,11 +379,9 @@ func (t *udp) readLoop() {
continue
}
glog
.
V
(
logger
.
Detail
)
.
Infof
(
"<<< %v %T %v
\n
"
,
from
,
packet
,
packet
)
go
func
()
{
if
err
:=
packet
.
handle
(
t
,
from
,
fromID
,
hash
);
err
!=
nil
{
glog
.
V
(
logger
.
Debug
)
.
Infof
(
"error handling %T from %v: %v"
,
packet
,
from
,
err
)
}
}()
if
err
:=
packet
.
handle
(
t
,
from
,
fromID
,
hash
);
err
!=
nil
{
glog
.
V
(
logger
.
Debug
)
.
Infof
(
"error handling %T from %v: %v"
,
packet
,
from
,
err
)
}
}
}
...
...
@@ -430,7 +428,7 @@ func (req *ping) handle(t *udp, from *net.UDPAddr, fromID NodeID, mac []byte) er
})
if
!
t
.
handleReply
(
fromID
,
pingPacket
,
req
)
{
// Note: we're ignoring the provided IP address right now
t
.
bond
(
true
,
fromID
,
from
,
req
.
Port
)
go
t
.
bond
(
true
,
fromID
,
from
,
req
.
Port
)
}
return
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment