dedis / prifi

PriFi, a low-latency, local-area anonymous communication network.
https://prifi.net
GNU Affero General Public License v3.0
48 stars 11 forks source link

SOCKS server behaving erratically when relay is killed #204

Open aledcuevas opened 5 years ago

aledcuevas commented 5 years ago

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