#1
|
|||
|
|||
Decryption too tied to downloading?
What's the difference between doReconnect() and requestReconnect()?
It seems that requestReconnect() waits for decryption to finish, even though decryption seems to have nothing to do with the internet connection. Another example where decryption is too tied to the downloading process is that decryption of a downloaded file doesn't seem to happen after JDownloader crashes. Instead, it has to re-download the file in order to decrypt it. |
#2
|
|||
|
|||
@SMS: requestReconnect informs the controller that a reconnect is requested and reconnect method should be executed when there are no active download plugins in process.
Also see Settings->Advanced Settings->Reconnect.downloadcontrollerprefersreconnectenabled and Settings->Advanced Settings->Reconnect.reconnectallowedtointerruptresumabledownloads requestReconnect does NOT WAIT for execution/result of reconnect. doReconnect does WAIT for execution/result of reconnect. please be aware that by using doReconnect might result in deadlock when your script is actively waiting for result of reconnect while for example blocking a download plugin process. I guess with decryption you mean mega file decryption after download? or do you mean something different? Reconnect is executed once no there are no active download plugins. It doesn't matter if the plugin is currently waiting for user input or doing some non network stuff (like decryption), as long as the plugin is running, it blocks the reconnect. This will not be changed as it would require major changes to controller and the plugins to provide support for plugins to tell controller that reconnect is okay/not okay and/or actively wait for reconnect to be finished. Last edited by notice; 06.04.2023 at 12:19. |
#3
|
|||
|
|||
Quote:
I already explained in your other thread that you should find out the cause of crash and fix/solve this. JDownloader does not simply crash, that's always a sign for more deeper Java/OS/xy issues. See https://board.jdownloader.org/showpo...04&postcount=6 |
#4
|
|||
|
|||
Yes, I mean mega file decryption after download.
Quote:
Reconnecting without waiting for decryption is important though, because decryption is slow: Settings->Advanced Settings->Reconnect.reconnectallowedtointerruptresumabledownloads is enabled. Then why does reconnect wait for decryption? Does it consider decryption to be non-resumable? Maybe this can be changed? Last edited by SMS; 10.04.2023 at 10:35. |
#5
|
|||
|
|||
Can you provide more details? Decryption speed is primary limited by disk IO.
Maybe some numbers? takes x secs for filesize y? or maybe provide example links for testing? Last edited by notice; 06.04.2023 at 14:06. |
#6
|
|||
|
|||
What host is asking for reconnect? If the reconnect is requested by same host, in this case mega, then this is blocked to avoid reconnect loops. Imagine you download from mega, 2nd download is asking for reconnect, resume is supported. now the download is aborted, reconnect takes place, download starts, the 2nd download again requests reconnect, and then we have reconnect loop without any progress in download.
|
#7
|
|||
|
|||
Quote:
My EventScripter script asks for reconnects. Without these reconnects, the average download speed would be even lower, because some servers stick to the initial download speed (even though they could increase it after my other downloads finish and free up my bandwidth). Why does resumable decryption (with reconnectallowedtointerruptresumabledownloads enabled) prevent reconnects? |
#8
|
|||
|
|||
Quote:
Quote:
Quote:
Would it be possible to provide 1,2 larger example links from mega for testing? you can mail them to support@jdownloader.org Last edited by notice; 14.04.2023 at 17:56. |
#9
|
|||
|
|||
Dercyption is much slower for me than 100MB/s. CPU usage is 100% in total, with JDownloader using about 70%. So decryption is probably slow due to the CPU.
If other programs used the CPU or disk intensely, then decryption would be even slower - arbitrarily slow. The problem is not that decryption takes long by itself, or that it is defined as part of the download process. The problem is that decryption prevents reconnects. Thus, a lot of time is spent decrypting, with very low or zero download speed, waiting for the reconnect. Resumable downloads don't prevent reconnects, and neither should the decryption of a (resumable) download. Here are some random example links from a Google search: **External links are only visible to Support Staff****External links are only visible to Support Staff** **External links are only visible to Support Staff****External links are only visible to Support Staff** Last edited by SMS; 16.04.2023 at 15:36. |
#10
|
||||
|
||||
Quote:
Please wait for us to look into this...
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|