View Single Post
Old 05-31-2017, 02:11 AM   #403
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by kovidgoyal View Post
@davidfor: If it is happening on the last packet, it sounds like the Kobo browser is not doing a proper TCP shutdown. i.e. it is not sending FIN followed by waiting for ACK, instead it is just closing the connection causing the kernel to send RST.
From the packet capture, it might have terminated connection after the second last packet. And the last produced the error because of that. But, I'll have to look at that again.
Quote:
The question is why is it happening with the new server and not the old?
I ran a packet capture with the 1.48 server last night, and couldn't see any differences, other than the fact that it works. But, watching it did tell me something. When I tap the link, the browser requests the file and displays prompt about whether to download or not. If I hit yes, it seems to start the download again.
Quote:
Does removing the Content-Length header make a difference?
I'll try this tonight. I'll also try your script and do a packet capture just to see what is happening.

One other thing I tried last night was older firmware. Kobo broke and fixed downloading files larger than 2MB recently. I tested with a firmware version from before the breakage with the same result - download from the server didn't work.
davidfor is offline   Reply With Quote