Windows - show info when no connection

Suggestions and discussion of future versions
Post Reply
muttley
New User
New User
Posts: 2
Joined: Fri Dec 27, 2013 1:55 am

Windows - show info when no connection

Post by muttley »

Hello,

Code: Select all

c:\Program Files (x86)\Deluge>deluge-console
Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "__main__.py", line 128, in <module>
  File "__main__deluge-console__.py", line 8, in <module>
  File "pkg_resources.py", line 318, in load_entry_point
  File "pkg_resources.py", line 2221, in load_entry_point
  File "pkg_resources.py", line 1954, in load
  File "deluge\ui\console\__init__.py", line 36, in <module>
  File "deluge\ui\console\main.py", line 42, in <module>
  File "twisted/internet/reactor.py", line 38, in <module>
  File "twisted/internet/selectreactor.py", line 199, in install
  File "twisted/internet/selectreactor.py", line 73, in __init__
  File "twisted/internet/base.py", line 495, in __init__
  File "twisted/internet/posixbase.py", line 290, in installWaker
  File "twisted/internet/posixbase.py", line 85, in __init__
  File "<string>", line 1, in connect
socket.error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
This happens if there's no connection to internet/firewall blocks it.
I think there should be some popup window (with windowed Deluge, not console one) which would inform the user that there's no connection - today I spent a lot of time trying to understand why Deluge appears in process list for about a minute then shuts down.

Sorry for my english.

muttley
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Windows - show info when no connection

Post by Cas »

You cannot run deluge-console interactively on Windows, this is the output you should see so not sure why you are getting an error

Code: Select all

C:\Program Files\Deluge>deluge-console.exe

Deluge-console does not run in interactive mode on Windows.

Please use commands from the command line, eg:

    deluge-console.exe help
    deluge-console.exe info
    deluge-console.exe "add --help"
    deluge-console.exe "add -p c:\mytorrents c:\new.torrent"

Code: Select all

C:\Program Files\Deluge>deluge-console.exe info
Failed to connect to 127.0.0.1:58846 with reason: No connection could be made because the
target machine actively refused it.
muttley
New User
New User
Posts: 2
Joined: Fri Dec 27, 2013 1:55 am

Re: Windows - show info when no connection

Post by muttley »

You misunderstood me a little :)

What I meant to say:
Let's say there's no connection (may be caused by firewall, internet provider, broken cable, whatever...)
deluge-console prints some information that there's no connection (socket.error: bla bla)
deluge doesn't display anything, then it exits from process list after some time

I think that deluge should show some window popup (for example MessageBox from WinAPI) that would tell the user what the problem is.
Post Reply