diodechain / diode_client

Diode client written in GO that runs the Blockquick™ algorithm and a socks server to transmit data through diodechain.
https://diode.io/download
Other
65 stars 23 forks source link

[v0.8.0] Connect error can show random data - might be timeout issue? #80

Closed dominicletz closed 3 years ago

dominicletz commented 3 years ago

Example when connecting to a node:

12/28/2020 20:02:25 INFO Validating ticket based on non-checked block 1201900 1203724 server=europe.testnet.diode.io:41046 
12/28/2020 20:02:25 INFO Validating ticket based on non-checked block 1203729 1203724 server=europe.testnet.diode.io:41046 
12/28/2020 20:02:25 INFO Validating ticket based on non-checked block 1203729 1203724 server=europe.testnet.diode.io:41046 
12/28/2020 20:02:31 ERROR doConnectDevice() failed:  �E6

12/28/2020 20:03:14 INFO Got proxy request from: 127.0.0.1:59146
12/28/2020 20:03:15 INFO Validating ticket based on non-checked block 1201900 1203727 server=europe.testnet.diode.io:41046 
12/28/2020 20:03:15 INFO Validating ticket based on non-checked block 1201900 1203727 server=europe.testnet.diode.io:41046 
12/28/2020 20:03:15 INFO Validating ticket based on non-checked block 1203732 1203727 server=europe.testnet.diode.io:41046 
12/28/2020 20:03:15 INFO Validating ticket based on non-checked block 1203732 1203727 server=europe.testnet.diode.io:41046 
12/28/2020 20:03:20 INFO Validating ticket based on non-checked block 1201900 1203727 server=europe.testnet.diode.io:41046 
12/28/2020 20:03:20 INFO Validating ticket based on non-checked block 1201900 1203727 server=europe.testnet.diode.io:41046 
12/28/2020 20:03:21 INFO Validating ticket based on non-checked block 1203732 1203727 server=europe.testnet.diode.io:41046 
12/28/2020 20:03:21 INFO Validating ticket based on non-checked block 1203732 1203727 server=europe.testnet.diode.io:41046 
12/28/2020 20:03:26 ERROR doConnectDevice() failed: +#&I
sc0Vu commented 3 years ago

Server will return 4 bytes of random_ref() when call the portopen timeout.

And client decode these bytes to string, the error message looks weird.

Anyway, I'm going to change error message when receive error message like that:

ERROR doConnectDevice() failed: portopen timeout
ERROR Failed to connectDevice(0x13ac4c74416ed3f59bd9d7dfca79326819631093): doConnectDevice() failed: portopen timeout