progrium/localtunnel

Infinite errors after sleeping/waking my machine

JohnB opened this issue · 0 comments

I realize this is a stupid issue - I don't expect the tunnel to stay up when I close up my machine and take it home - but it may be indicative of a deeper problem. I got a similar issue yesterday (but without any traceback that I remember) even when I was in the office.

When I looked at this terminal window it was saying "ERROR: expired" every second or so. A clear error message and exponential backoff would look better. Maybe something like
"HH:MM:SS: Connection lost. Retrying in X seconds...".

Here is the traceback:

(master) 16:34:25 ~/dev/razoo > localtunnel-beta -n johnrazoo 3000
  Thanks for trying localtunnel v2 beta!
  Source code: https://github.com/progrium/localtunnel
  Donate: http://j.mp/donate-localtunnel

  Port 3000 is now accessible from http://johnrazoo.v2.localtunnel.com ...

Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/eventlet-0.10.0-py2.7.egg/eventlet/greenpool.py", line 80, in _spawn_n_impl
    func(*args, **kwargs)
  File "build/bdist.macosx-10.7-x86_64/egg/localtunnel/client/client.py", line 14, in open_proxy_backend
    proxy = eventlet.connect(backend)
  File "/Library/Python/2.7/site-packages/eventlet-0.10.0-py2.7.egg/eventlet/convenience.py", line 20, in connect
    sock.connect(addr)
  File "/Library/Python/2.7/site-packages/eventlet-0.10.0-py2.7.egg/eventlet/greenio.py", line 173, in connect
    socket_checkerr(fd)
  File "/Library/Python/2.7/site-packages/eventlet-0.10.0-py2.7.egg/eventlet/greenio.py", line 46, in socket_checkerr
    raise socket.error(err, errno.errorcode[err])
error: [Errno 60] ETIMEDOUT
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/eventlet-0.10.0-py2.7.egg/eventlet/greenpool.py", line 80, in _spawn_n_impl
    func(*args, **kwargs)
  File "build/bdist.macosx-10.7-x86_64/egg/localtunnel/client/client.py", line 14, in open_proxy_backend
    proxy = eventlet.connect(backend)
  File "/Library/Python/2.7/site-packages/eventlet-0.10.0-py2.7.egg/eventlet/convenience.py", line 20, in connect
    sock.connect(addr)
  File "/Library/Python/2.7/site-packages/eventlet-0.10.0-py2.7.egg/eventlet/greenio.py", line 173, in connect
    socket_checkerr(fd)
  File "/Library/Python/2.7/site-packages/eventlet-0.10.0-py2.7.egg/eventlet/greenio.py", line 46, in socket_checkerr
    raise socket.error(err, errno.errorcode[err])
error: [Errno 60] ETIMEDOUT
  ERROR: expired
  ERROR: expired
  ERROR: expired
  ERROR: expired