Skip to content

Conversation

@ptschip
Copy link
Collaborator

@ptschip ptschip commented Feb 24, 2017

Previously we were only clearing vRecvMsg however there are
two other queues vSendMsg and vRecvGetData which need to be cleared
as well. A TRY_LOCK is used because of the potential for deadlock
although not likely because at this point there should be no other
contention.

Previously we were only clearing vRecvMsg however there are
two other queues vSendMsg and vRecvGetData which need to be cleared
as well.  A TRY_LOCK is used because of the potential for deadlock
although not likely because at this point there should be no other
contention.
@ptschip ptschip changed the title Clear all send and receive queues when node disconnects [WIP] Clear all send and receive queues when node disconnects Feb 24, 2017
@ptschip
Copy link
Collaborator Author

ptschip commented Feb 24, 2017

strange is fails on clearing vSend...i put this into WIP...i'll need to take a closer look at what's going on ...it should have been a simple PR but something else is going on here.

@ptschip
Copy link
Collaborator Author

ptschip commented Feb 24, 2017

I'm starting to believe this is related to issue #314

Not the code here specifically but prior to this when the disconnects are being issued. I believe that vNodes is not locked properly, or rather the disconnects are being issued in the wrong manner. I"ll have more on this later.

@ptschip
Copy link
Collaborator Author

ptschip commented Feb 26, 2017

closing for now, not sure this is necessary...PR 316 turns out to be the solution to the Invalid Message Start issue. Will re-assess this one at a later time.

@ptschip ptschip closed this Feb 26, 2017
sickpig pushed a commit to sickpig/BitcoinUnlimited that referenced this pull request Mar 12, 2018
HTTP Server cherries from Core:

bitcoin/bitcoin#6719 - Make HTTP server shutdown more graceful
bitcoin/bitcoin#6859 - http: Restrict maximum size of http + headers
bitcoin/bitcoin#6990 - http: speed up shutdown
bitcoin/bitcoin#7966 - http: Do a pending c++11 simplification handling work items
bitcoin/bitcoin#8421 - httpserver: drop boost (#8023 dependency)
bitcoin/bitcoin#11006 - Improve shutdown process
marlengit pushed a commit to marlengit/BitcoinUnlimited that referenced this pull request Sep 25, 2018
HTTP Server cherries from Core:

bitcoin/bitcoin#6719 - Make HTTP server shutdown more graceful
bitcoin/bitcoin#6859 - http: Restrict maximum size of http + headers
bitcoin/bitcoin#6990 - http: speed up shutdown
bitcoin/bitcoin#7966 - http: Do a pending c++11 simplification handling work items
bitcoin/bitcoin#8421 - httpserver: drop boost (#8023 dependency)
bitcoin/bitcoin#11006 - Improve shutdown process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant