My client lost all connections again.
I found something very weired.
1. I add a node which is available, connect failed with the error message
20140715T021353.767977 th_a connect_to ] fatal: error connecting to peer 180.153.142.115:8764: 0 exception: unspecified
Cannot assign requested address
{"message":"Cannot assign requested address"}
asio asio.cpp:56 error_handler peer_connection.cpp:138
this error message means the bind to socket is failed
2. so I check the network connection
alt@localhost:~/.BitSharesXTS/logs/p2p$ sudo netstat -nap | grep bitshares
tcp 0 0 0.0.0.0:8762 0.0.0.0:* LISTEN 15885/bitshares_cli
tcp 0 1 106.185.26.162:8762 61.153.44.85:28837 SYN_SENT 15885/bitshares_cli
tcp 0 1 106.185.26.162:8762 61.153.44.85:31018 SYN_SENT 15885/bitshares_cli
tcp 0 1 106.185.26.162:8762 61.153.44.85:16856 SYN_SENT 15885/bitshares_cli
tcp 0 1 106.185.26.162:8762 61.153.44.85:31292 SYN_SENT 15885/bitshares_cli
udp 0 0 0.0.0.0:53867 0.0.0.0:* 15885/bitshares_cli
seems correct.
3.I check again with port 8762
tcp 0 0 0.0.0.0:8762 0.0.0.0:* LISTEN 15885/bitshares_cli
tcp 33 0 106.185.26.162:8762 182.100.95.163:5255 ESTABLISHED -
tcp 34 0 106.185.26.162:8762 58.38.123.107:8801 CLOSE_WAIT -
tcp 34 0 106.185.26.162:8762 113.92.251.20:13529 CLOSE_WAIT -
.....
tcp 0 1 106.185.26.162:8762 119.123.19.157:11971 SYN_SENT 15885/bitshares_cli
...
tcp 33 0 106.185.26.162:8762 182.100.95.163:5068 ESTABLISHED -
tcp 33 0 106.185.26.162:8762 182.100.95.163:5291 ESTABLISHED -
Are you notice that there are 3 connections which state is ESTABLISHED?
Weired thing is that the pid is NULL! That means these connections are handled by kernel now, and bitshares_client can not bind to this socket anymore.
How did this happen?
4. test more
alt@localhost:~/.BitSharesXTS/logs/p2p$ telnet localhost 8762
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
alt@localhost:~/.BitSharesXTS/logs/p2p$ netstat -nap | grep 8762 | grep ESTABLISHED
tcp 33 0 106.185.26.162:8762 182.100.95.163:5255 ESTABLISHED -
tcp 0 0 127.0.0.1:37431 127.0.0.1:8762 ESTABLISHED 20705/telnet
tcp 33 0 106.185.26.162:8762 182.100.95.163:5068 ESTABLISHED -
tcp 33 0 106.185.26.162:8762 182.100.95.163:5291 ESTABLISHED -
you can see, no server handle the telnet request anymore.
5. I have check the node 182.100.95.163 from p2p.log file, there are too many infos, I have to give up.