JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 13.07.2013, 16:29
danutz
Guest
 
Posts: n/a
Default low timeout default values

There is very little advantage to low timeouts.

For example the captcha timeout: what's the point of dismissing a Bitshare captcha if the user was away from the computer for 15 seconds? He will have to restart the link and wait another minute or so before a new captcha comes up (Bitshare has a pre-captcha delay, unlike Uploaded). Why not default the timeout at 5 minutes?

The really bad timeout is the network inactivity one. If my computer is busy with many tasks and swapping (trashing the HDD), JD will notice that no bytes were written for an Uploaded download after 30 seconds (or whatever the default was, I can't remember) and cancel the download. Then I have to wait 3 hours to retry it. The network timeout should be something like 15 minutes. It doesn't really serve a purpose anyway.
Reply With Quote
  #2  
Old 14.07.2013, 15:10
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,786
Default

Ticket:


GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #3  
Old 14.07.2013, 19:09
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,981
Default

Captcha Dialog TImeout: Advanced Settings: "CaptchaSettings: Dialog Countdown"

About Your network - whatever problems:
  1. If you have 2 Problems - Create to Topics. Mixed Topics make it hard for us to track problems
  2. Please Explain in detail about our Network timeout Problem.

There are many timeout options. A log would be great as well.
__________________
Reply With Quote
  #4  
Old 15.07.2013, 11:26
danutz
Guest
 
Posts: n/a
Default

@coalado: I blame the Http Read Timeout (filter by http in advanced settings). Just an informed guess.

I've had my Linux box swapping for minutes on end (when it was low on memory) and JD ended up killing some connections, presumably because it wasn't getting any timeslots from the OS (thus it wasn't reading anything). After increasing the Http Read Timeout, it hasn't happened again.

Thanks for the bug. I knew how to fix the problem, but I think the defaults should be more reasonable. Also when reinstalling JD, it's good to not have to tweak so many values.

Last edited by danutz; 15.07.2013 at 11:28.
Reply With Quote
  #5  
Old 15.07.2013, 13:58
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,981
Default

what would be a reasonable timeout.

The problem is, that jd cannot interrupt socket reads. that means, that it may take up to the timeout time to stop a download that is in a readtimeout.
__________________
Reply With Quote
  #6  
Old 15.07.2013, 14:03
danutz
Guest
 
Posts: n/a
Default

So, worst-case, when the hoster stops responding (which doesn't happen so often), JD will not restart as early as it could? The user can interrupt manually if they see downloads stalling.

In my opinion, maybe 5 minutes. The default is 30 seconds I think. By the way this is one of the advanced settings where the unit is not defined (the default is 30000, but in what units? Seconds? msec?). This is why I think either all constants should be in msec, or you should add a "Units" column after the Type column.
Reply With Quote
  #7  
Old 15.07.2013, 14:18
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,981
Default

all constants are in ms. there are some in seconds, but they will be replaced

The user cannot stop.. that IS the problem. if you set the timeout to 5 minutes... a shutdown may take 5 minutes.


The only good solution is proper "close connections on interrupt"
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 14:44.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.