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
68b4b746
Unverified
Commit
68b4b746
authored
5 years ago
by
Péter Szilágyi
Committed by
GitHub
5 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20762 from karalabe/fix-txprop-leak
eth: fix transaction announce/broadcast goroutine leak
parents
92f3405d
270fbfba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
peer.go
eth/peer.go
+6
-6
No files found.
eth/peer.go
View file @
68b4b746
...
...
@@ -155,9 +155,9 @@ func (p *peer) broadcastBlocks() {
// node internals and at the same time rate limits queued data.
func
(
p
*
peer
)
broadcastTransactions
()
{
var
(
queue
[]
common
.
Hash
// Queue of hashes to broadcast as full transactions
done
chan
struct
{}
// Non-nil if background broadcaster is running
fail
=
make
(
chan
error
)
// Channel used to receive network error
queue
[]
common
.
Hash
// Queue of hashes to broadcast as full transactions
done
chan
struct
{}
// Non-nil if background broadcaster is running
fail
=
make
(
chan
error
,
1
)
// Channel used to receive network error
)
for
{
// If there's no in-flight broadcast running, check if a new one is needed
...
...
@@ -217,9 +217,9 @@ func (p *peer) broadcastTransactions() {
// node internals and at the same time rate limits queued data.
func
(
p
*
peer
)
announceTransactions
()
{
var
(
queue
[]
common
.
Hash
// Queue of hashes to announce as transaction stubs
done
chan
struct
{}
// Non-nil if background announcer is running
fail
=
make
(
chan
error
)
// Channel used to receive network error
queue
[]
common
.
Hash
// Queue of hashes to announce as transaction stubs
done
chan
struct
{}
// Non-nil if background announcer is running
fail
=
make
(
chan
error
,
1
)
// Channel used to receive network error
)
for
{
// If there's no in-flight announce running, check if a new one is needed
...
...
This diff is collapsed.
Click to expand it.
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