dedis / prifi

PriFi, a low-latency, local-area anonymous communication network.

Home Page:https://prifi.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SOCKS server behaving erratically when relay is killed

aledcuevas opened this issue · comments

Description: The SOCKS server which allows the relay to connect to the internet throws errors (either several "EOF" or "Bad Version") when the relay is restarted and (seemingly) when there's connections in progress.

Steps to reproduce:

  1. Setup the protocol (i.e. start a trustee, start a relay, start the "non-prifi" SOCKS server)
  2. Connect a client (I tested with a mobile client)
  3. Initiate several connections (e.g. speedtest app)
  4. Kill the relay
  5. Observe the errors generated, sometimes it throws "EOF" and sometimes it throws "Bad Version", the amount seems to be correlated with the amount of active connections when the relay was killed.

Even after restarting the relay, the SOCKS server seems to become unresponsive.

eof

bad-version