Bug 40323

Summary: KIO slaves should have a way to specify a max chunk size for readData(), otherwise progress bar isn't updated often enough with slow slaves
Product: [Frameworks and Libraries] kio Reporter: germain
Component: kioslaveAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Other   
Latest Commit: Version Fixed In:

Description germain 2002-04-06 21:11:49 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           
Version:           
Severity:          wishlist
Installed from:    
Compiler:          
OS:                
OS/Compiler notes: 

In the current implementation sent chunks in readData() have an unpredictable size.

This can be quite un-handy if your slave :
a) is slow 
b) uses a different chunk size

I had both cases with a slave communicating with a serial device:
- it has 8 Kb/sec throughput but konqui send 32 to 64 kb chunks => progress bar is updated every 4 or 8 seconds !
- I had to add some setRawData() to split those large chunks into 4Kb chunks which is not very clean

So wouldn't it be possible to add an extra parameter to readData() for instance:
readData( QByteArray & data int length=-1 )?

Or any other way to emit a recommendation for chunk sizes ?


(Submitted via bugs.kde.org)
Comment 1 Nate Graham 2018-04-16 18:43:15 UTC
Doesn't seem to be a problem in KDE Frameworks 5.45.