kw1jjang / CalVoD

CalVoD
http://www.eecs.berkeley.edu/~kw1jjang/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

A new cache will be registered as a different port on server #16

Closed chenjiayuan closed 8 years ago

chenjiayuan commented 8 years ago

When creating a cache at port 60001, the actual port getting registered on server is 65534 (looks random because it is a different value for each time). Need to fix this or at least keep track of it, since the server has to tell the tracker which cache to delete after disconnection.

On server side: [I 15-11-15 10:22:23] []127.0.0.1:61741 Connected. INFO:pyftpdlib:[]127.0.0.1:61741 Connected. [server.py] **** CONNECTION ESTABLISHED Connection accepted. /usr/local/Cellar/python/2.7.7_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyftpdlib-1.4.0-py2.7.egg/pyftpdlib/handlers.py:2478: RuntimeWarning: DummyAuthorizer.get_home_dir returned a non-unicode string; now casting to unicode [I 15-11-15 10:22:23] 127.0.0.1:61741-[anonymous] USER 'anonymous' logged in. INFO:pyftpdlib:127.0.0.1:61741-[anonymous] USER 'anonymous' logged in.