Hi all,
Today an annoying message started to appear on the BitTorrent "DOWNLOADS" list.
"Connection to server failed" (firmware 1.08)
When clicking the "Retry" button I can briefly see the download and upload speeds changing, but the error comes up suddenly after. This makes impossible to use the webpage so BitTorrent is not usable.
I couldn't find any solution around, therefore I looked into the problem myself. The solution is to do exactly what the "Retry" button does (refresh the torrent list, which probably involves the creation of a new connection between the web script and the server daemon). In brief, to fix the problem:
1. Edit the file /Volume_1/Nas_Prog/BT/webui/fe02.asp
2. Find two statements like this:
if (failedRequest(request)) {
showConnectionError();
return;
}
and replace them with this
if (failedRequest(request)) {
torrentsRefresh();
}
3. Save
4. Refresh the webpage to see the result.
P.s. To edit the files you should have telnet access (that is fun_plug installed). Either use the "vi" editor from command line or "chmod 777 fe02.asp", edit it with notepad, and "chmod 744 fe02.asp" back.
Hope this helps!
---------------
There is another way to get around the problem. It involves changing the refresh rate to a value below 0.5 seconds. To do this change this line:
torrentsRefreshTimeout = setTimeout("torrentsRefresh()", sdkCtl.refreshFreq);
into this:
torrentsRefreshTimeout = setTimeout("torrentsRefresh()", 400);
THIS SOLUTION WILL CAUSE THE LOAD OF DNS-323 TO GO UP FAST. That means each time you open that web page to work with BitTorrent, you are loading the machine with a lot of unnecessary work. The default refresh rate is 5000 (5 seconds) and is set in "btsdk.js" file.
--------------
P.s.2 Somebody correct me if I am wrong for anything.
Hi:
Running into the same problem.. tried using your solution, but could not find "webui" directory.. i was using 1.09.. but then downgraded to 1.08.. still can't find webui.. I found the file fe02.asp in /web/web/bt/ but that is read-only file system and could not edit..
Any suggestion?
thank you
Kn