Bug #10606
closed
civetweb keeps receiving data after client canceled download
Added by Mustafa Muhammad over 9 years ago.
Updated about 8 years ago.
Description
Hi,
I am testing civetweb, I am getting huge rx with little tx, after investigating the issue, I found that civetweb keeps receiving data from the cluster even after the client disconnected (canceled the download).
I can provide logs or any info you request.
What do you mean huge rx vs tx? Much more reads than writes?
- Status changed from New to Need More Info
- Source changed from other to Community (user)
I am using this gateway only for downloading, I mean e.g. the node receives 10 GB (from the ceph cluster) and only sends 1 GB (to the customers), so much more received data than sent data.
- Status changed from Need More Info to Can't reproduce
Hi, this is the procedure I used to reproduce:
1) Open the gateway, running civetweb, and start dstat
2) Open Chrome and start downloading a file (about 1.4G), watch dstat, there is a traffic (in and out)
3) Cancel the download early (before it reaches half).
4) Watch dstat, only incoming traffic (no outgoing, since the client disconnected).
5) If you just booted the server (ifconfig was reporting about 0 bytes before you begin), you will have 1.4G (file size) incoming and less that that (maybe 100M or 500M, depending on when you canceled the download) outgoing.
This means after the user cancel the download, civetweb keeps receiving data for the disconnected client, this doesn't happen with apache, and this is the reason I can't use civetweb.
Regards
I've experienced this issue as well. When downloading a large object (i.e. 6GB) if I cancel in the middle of the download (using Ctrl+C with curl or closing the fd with libcurl) the gw seems to pull the rest of the object from the cluster even though the client is no longer around. Currently I'm using civetweb but I'm about to switch to apache and see if the issue exists there as well.
Can anybody check this again, please? It is reproducible here.
finally got around to upgrading to hammer and not seeing this anymore. Also hammer is awesome so far.
This is now fixed in 9.2 Infernalis, thank you, please close this bug.
Also available in: Atom
PDF