summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-03-04 03:12:58 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-03-04 03:12:58 +0100
commit8d85fb7c11dfa83052d09402dbae21dde44392aa (patch)
tree4d3ae6587d2c3bea88e3f70631837c9a1959e8d0 /module/plugins
parentRevert 3a9c167ceca27d57dbef927626fe853a3d0e30b2 (diff)
downloadpyload-8d85fb7c11dfa83052d09402dbae21dde44392aa.tar.xz
[ClickAndLoad] Fix https://github.com/pyload/pyload/issues/1220
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hooks/ClickAndLoad.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/ClickAndLoad.py b/module/plugins/hooks/ClickAndLoad.py
index 1a7dec6ac..f3396be77 100644
--- a/module/plugins/hooks/ClickAndLoad.py
+++ b/module/plugins/hooks/ClickAndLoad.py
@@ -16,15 +16,15 @@ def forward(source, destination):
destination.sendall(bufdata)
bufdata = source.recv(bufsize)
finally:
- source.shutdown(socket.SHUT_RD)
destination.shutdown(socket.SHUT_WR)
+ destination.close()
#@TODO: IPv6 support
class ClickAndLoad(Hook):
__name__ = "ClickAndLoad"
__type__ = "hook"
- __version__ = "0.38"
+ __version__ = "0.39"
__config__ = [("activated", "bool", "Activated" , True),
("port" , "int" , "Port" , 9666),
@@ -68,11 +68,11 @@ class ClickAndLoad(Hook):
try:
dock_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
dock_socket.bind((ip, cnlport))
- dock_socket.listen(1)
+ dock_socket.listen(5)
while True:
client_socket, client_addr = dock_socket.accept()
- self.logDebug("Connection from: %s" % client_addr)
+ self.logDebug("Connection from %s:%s" % client_addr)
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_socket.connect(("127.0.0.1", webport))