Jump to content

recheck at startup


kvarga

Recommended Posts

Oh crap those are huge torrents... Um, everything else works fine (green light and all), right? Have you tried disabling UPnP and/or DHT? It's a major cause for a bunch of other problems, and I'm not sure if it's relevant in your case, but it might be worth a try.

Link to comment
Share on other sites

check out first post:

his problem is that utorrent checks the files downloaded during the last session everytime if the program is not closed correctly..

he has to close utorrent and then shutdown, so that it is closed properly and not terminated causing uT to check the files on next startup

Link to comment
Share on other sites

I think you cannot do much about this issue. uTorrent is not very fast in closing down and Windows probably kills the process before it can shut down properly (especially if you have certain "tweaks" in place). I'm not sure what uTorrent does when closing down and why it takes a little longer than most other apps though...

Link to comment
Share on other sites

no, it depends on the torrents it has to announce stopped to trackers.. try removing ur torrents and u'll see that it exits immediately..

currently, it announces them as stopped and if no tracker response is given by the 15th second it terminates

what about a new advanvec option for the time it waits before it terminates with a default value of 15000 (ms)?

or uT could probably read windows's registry and find what the time before windows terminates the processes after sending them the exit signal is and adjust itself properly (terminating in the time set - 1000 ms)

Link to comment
Share on other sites

@Game90: I doubt that, the average HD writes with at least 10MB/s, so you would need a huge cache to slow it down that much.

@dAbRaAKA: 1000ms is way too short. It would also think that there is a reasonable time defined in the BT-specs. 15s doesn't all that bad. Last, I think it also takes more time than just a second to close all TCP-connections gracefully.

Link to comment
Share on other sites

why should it follow the BT-specs

it works as follows:

1. when shutdown/restart is activated, the OS sends uT the exit signal

2. the OS waits (i think 15s by default) and if there are still running processes, it kills them (uT may not be able to save its setting if it gets killed)

3. it shuts down

i suggest it to work like that:

1. get the maximum time before terminating (either by the windows waits minus 1 second or something like that or by a variable in the settings) - the first one is better

2. try to close the TCP-connections gracefully for the time it has and if the maximum time before terminating comes and not all connections are closed, terminate (saving settings, etc..)

currently it will get killed without saving the settings, resume data, and so on, and it will have to recheck the torrents to see the progress

Klaus_1250 i didnt say 1000ms, but the time the OS waits before it kills the processes in miliseconds minus 1000 or 500 or whatever..

Link to comment
Share on other sites

Because specs are there for a reason. But, I looked up the BT-specs, but couldn't find any mention of time-outs? Odd.

The problem is that there are tweaks floating around with unreasonable value's for killing off processes. You can read out the value for them in the registry, but with bad luck, only to find that you may never be able close the program gracefully in the given period.

As for the (TCP) connections. Not closing them properly can create a whole range of problems, if I remember the early days of p2p correctly.

In any case, it is worth investigating why uTorrent now takes longer to close. Perhaps the shutdown-sequence can be streamlined or made more parallel, or an advanced aggresive option for instance, discarding data in transit / the cache.

Link to comment
Share on other sites

what do u prefer?

uT terminating at the 14th second, not closing all the connections gracefully, but saving the settings properly, thus avoiding hashchecking of torrents (in the thread-creator's case 40-50 GB.. do u know how much time it takes to check all that data?)

or

uT being killed at the 15th second, not closing all the connections gracefully and not saving the settings and resume data, so that it needs to check the 50 GB torrents at startup

as i said, uT should try to close them properly, but if it seems to fail to do that before the time of it getting killed approaches, it should terminate wisely instead of being killed

and it could read that registry data to see when is it expected to be killed so that it could wisely exit just a bit before that.. if it is supposed to be killed at the 3rd second for example, it could try to close the connections and if it fails to by the 2nd second (which would most probably happen) it should have a second or as much time it needs to exit

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...