client disconnection on https rss feed update
Sometimes when the plugin checks https rss feeds, it disconnects the thin client user. Have received different messages:
rpcserver:224 Deluge client disconnected: [('SSL routines', 'SSL3_READ_BYTES', 'tlsv1 alert protocol version')]
rpcserver:224 Deluge client disconnected: [('SSL routines', 'SSL3_WRITE_PENDING', 'bad write retry')]
This doesn't happen every time, so not sure why its random, but it happens the same second as an RSS reed update. Doesn't occur when feeds are disabled. Happens with three separate RSS feeds links on different sites.
Using latest 1.4.3 version, Deluge 1.3.12, Libtorrent 0.15.1.0, Python 2.7.3, Debian Wheezy
Comments (3)
-
reporter -
repo owner Hi
I remember seeing this issue some time ago with a KeyError exception in SSL libs called from twisted. This is probably the issue: https://github.com/pyca/pyopenssl/issues/163
This is probably one of the reasons the thin client disconnects, but it can also be due to other problems.
To fix the KeyError issue without upgrading the library you can hack /usr/lib/python2.7/dist-packages/OpenSSL/SSL.py by changing the line (862) from
raise SysCallError(errno, errorcode[errno])
toraise SysCallError(errno, errorcode.get(errno))
which is the fix applied to in later versions of pyopenssl.A better approach is to install a newer version of pyopenssl with pip.
-
reporter I updated pyOpenSSL to 0.15.1 but I still get disconnections. I'm not getting any errors or warnings anymore though. Only message I get when the client disconnects is rpcserver:223 Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost. I don't get those SSL disconnect messages anymore, just the one above.
- Log in to comment
Upgraded to debian 8, python 2.7.9, liborrent 0.16.8.0 -- still happens
here is the traceback every time it happens, maybe someone can make sense of this. This may not be plugin issue and actually ssl issue?