aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: "Remove dead server after x retries" removing all good servers  (Read 4087 times)

Andarilho-BR

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
"Remove dead server after x retries" removing all good servers
« on: September 21, 2004, 02:49:37 PM »

This is the same in all versions of eMule...

If someone turn on "Remove dead server after x retries" (in Preferences -> Server) and the internet connection goes down, aMule stay trying all the servers from the list, and drops several of them (the betters first).

All internet connections will at some time go down, and may recover automatically, dropping some servers each time.

And some cable / adsl services goes down after a long time, to free the IP and you must log in again to continue.

I think the option is good but the behavior is not the better one.

I think an easy way to do is drop the server only if there are packets being received, from any aMule client, waiting some time to be sure, allowing buffered packets to flow after connection lost.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: "Remove dead server after x retries" removing all good servers
« Reply #1 on: September 21, 2004, 03:51:28 PM »

If you don't want servers to be dropped, set them as static.
Logged

lfroen

  • Guest
Re: "Remove dead server after x retries" removing all good servers
« Reply #2 on: September 21, 2004, 03:58:43 PM »

It's quite complicated, that link is down and not server is dead. If you have such fcked up DSL connection (i don't have other words for such - sorry) just turn this option off. Or mark servers as static.
Other thing you can do - detect link down condition on system level, and kill amule when it happen. It won't hurt - you disconnected anyway already.
Logged

Andarilho-BR

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: "Remove dead server after x retries" removing all good servers
« Reply #3 on: September 21, 2004, 05:39:19 PM »

Ok, it's because always when I install eMule I forget to turn it off. I like the feature but I could not use it (I will not mark all servers as static...)

Also, the world is not perfect... Think about a perfect connection when your wife cleaning the house accidentally kicks the network cable...  :)

I think I could implement it myself without much trouble:
 - Setting a counter at each network packet received from outside (IP from other network)
 - After the first server connection failure, save the counter (the delay until connection error will let buffered packets to flow, after that the counter is saved)
 - After the last unsuccessful try, compare the counter with the value saved. If (tries == 1) or (values are NOT the same) then remove.

I ask if this would be easy...

It is a good thing to ask if aMule also drops file sources or some other things in other retries.

Cable / ADSL connection drop to free IP are not done only here in Brazil, everybody have a pool of IP's to manage. Here I think once a week they do this. Hold a IP permanently is more expensive, so I have to live with it.

Tranks.
Logged