Fix issue #183 (CPU 100% usage) #277
No reviewers
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-02#277
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "cpu100percentfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As per http://docs.python.org/2/howto/sockets.html#using-a-socket it's
possible that a socket recv() call returns 0 bytes if the remote closes
the connection. In that case, recv() does not obey settimeout(): it
just doesn't block and returns zero bytes immediately, which in this
case results in an infinite loop if the transmission was incomplete.
Good job!
👍 bravo
Again, well done on pin pointing the exact issue! Hopefully this is the only potential infinite loop in existence.
This does seem to be working. If BM is still well behaved by the end of the day then I think we can call this issue fixed.
I've been running BM with this patch for about 9 hours, now. It looks like the issue is resolved. Although I'm happy waiting until the end of the day, just to be sure.
Congratulations! You located the cause.
can I get a deb-package with that fix already somewhere?
http://download.opensuse.org/repositories/home:/motters:/pybitmessage/