Last modified: 2014-09-17 11:25:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57197, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55197 - PostData() datas are not gzip compressed
PostData() datas are not gzip compressed
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
compat-(1.0)
All All
: High major
: ---
Assigned To: Pywikipedia bugs
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:42 UTC by Kunal Mehta (Legoktm)
Modified: 2014-09-17 11:25 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:42:01 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1447/
Reported by: Anonymous user
Created on: 2012-05-19 16:38:59
Subject: PostData() datas are not gzip compressed
Assigned to: xqt
Original description:
Using the 'pagegenerators', data transfer is not compressed.
That data will be several megabytes.
That transfer is very time consuming.

Therefore, I think a good idea to remove that line.

Thank you consider.
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:42:03 UTC
It is less time consuming than loading e.g. 60 times each page separately. What is the intention of this request?
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:42:05 UTC
I also do not consume more time is good.

gzip compression will compress to about one-third of the text data.
Therefore, transfer time will be one-third. Is roughly.

However, data transfer has not been compressed in the generator.
This proposal is one way to solve this problem.
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 04:42:07 UTC
This has nothing to do with preloading generator. http requests are done by Site.PostData\(\) or Site.getUrl\(\) with gzip compression enabled by default.
Comment 4 Kunal Mehta (Legoktm) 2013-10-05 04:42:08 UTC
- **assigned_to**: nobody --> xqt
Comment 5 Kunal Mehta (Legoktm) 2013-10-05 04:42:11 UTC
I understand. In the request header are described.
However, the response data are not compressed.

May be a bug of MediaWiki.
Comment 6 Kunal Mehta (Legoktm) 2013-10-05 04:42:12 UTC
I don't know whether they are compressed or not. How did you see it?
Comment 7 Kunal Mehta (Legoktm) 2013-10-05 04:42:15 UTC
I was confirmed by Wireshark.
This is a packet analysis software.
Comment 8 Kunal Mehta (Legoktm) 2013-10-05 04:42:17 UTC
Maybe the header is wrong. I found 'Accept-encoding' as header parameter but at  https://www.mediawiki.org/wiki/API:Client\_Code header is described as 'Accept-Encoding' \(capital Encoding\)
Comment 9 Kunal Mehta (Legoktm) 2013-10-05 04:42:18 UTC
- **summary**: Do not use preloading in featured.py --> PostData() datas are not gzip compressed

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links