XD icon indicating copy to clipboard operation
XD copied to clipboard

WebUI frozen when I2P connections is lost

Open pkreuzt opened this issue 7 years ago • 3 comments

info

git revision / version: 0.2.2 OS: linux Architecture: armv7 Running through I2PD

problem

WebUI doesn't advert of I2P connection lose. When I2pd dies or closes for some reason, the webui shows a frozen state which still reads there are peers:

X peers connected on Y torrents (ratio) , etc

This gives the impression it's waiting to download or upload. There is no indication of the lost connection.

pkreuzt avatar Jun 12 '18 05:06 pkreuzt

good point, I'll work on adding an rpc method for checking online status this weekend.

majestrate avatar Jun 12 '18 10:06 majestrate

fix attempted in https://github.com/majestrate/XD/commit/476938e0d6f39b4174a26b0228749b67e9341add

majestrate avatar Jun 30 '18 13:06 majestrate

This seems to work, webui no longer freezes and now it shows different behaviour when connection is lost. It also recovers well from reconnection. Probably this is not the intended solution but it shows a ghost torrent only in "All" tab when connection is lost:

captura de pantalla_2018-07-02_18-27-16

pkreuzt avatar Jul 02 '18 16:07 pkreuzt