mirror of
https://github.com/werwolfby/monitorrent.git
synced 2026-10-14 21:39:03 +00:00
[GH-ISSUE #46] Still hangs on bad internet connection #21
Labels
No labels
bug
docs
duplicate
enhancement
Epic
feature
feature
future
help wanted
in progress
need more info
plugin
proxy
pull-request
python 2
python 3
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
werwolfby/monitorrent#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @werwolfby on GitHub (Mar 7, 2016).
Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/46
Originally assigned to: @werwolfby on GitHub.
Socket by some reason hangs on some requests.
The issues was reproduced with lostfilm plugin and had next stacktrace:
And
Looks like there is some issue with sockets. In case of bad connection when it starts receive packages from lostfilm and connection was broken it hangs on socket.recv method.
Can be solved by introducing and use timeout for requests.
@werwolfby commented on GitHub (Mar 13, 2016):
Some comments:
http://stackoverflow.com/questions/5686490/detect-socket-hangup-without-sending-or-receiving
http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#WhyisntmyconnectionLostmethodcalled