← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 588734] Re: Slow GTK client over the web due to uncompressed data

 

** Changed in: openobject-client
   Importance: Undecided => Wishlist

** Changed in: openobject-client
       Status: New => Confirmed

** Changed in: openobject-client
     Assignee: (unassigned) => OpenERP sa GTK client R&D (openerp-dev-gtk)

-- 
Slow GTK client over the web due to uncompressed data
https://bugs.launchpad.net/bugs/588734
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject GTK Client: Confirmed

Bug description:
The GTK has very slow performances when the server and the GTK client are connecting over the Internet. 

Wireshark reveals that the traffic is pretty heavy, lots of calls using xml-rpc. That should not be a big deal, if only the xml traffic over http would be compressed. 

In my installation, openerp-server is proxied with Apache, which has been configured to compress mine types text/xml. 

-- GTK client headers: --

POST /xmlrpc/object HTTP/1.0 
Host: erptest.similys.com:80 
User-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com) 
Content-Type: text/xml 
Content-Length: 386 

-- Server response: --

HTTP/1.1 200 OK 
Date: Wed, 02 Jun 2010 14:17:50 GMT 
Server: BaseHTTP/0.3 Python/2.5.2 
Content-type: text/xml 
Content-length: 129 
Via: 1.0 domU-12-31-39-0A-9D-13.compute-1.internal 
Vary: Accept-Encoding 
Connection: close 
.... content goes here ... 

Since the GTK client does not present its capabilities to gzip content, Apache returns the content uncompressed. 

I have then forced Apache to return compresses data, but the GTK client is unable to understand it. 

Question: 
 - is it possible to instruct the GTK client to use gzip compression ? 
 - is it possible to globally tell the network library used by GTK to support gzip compression ? 
 - how can we give the GTK client the capability to support gzip compression?

Thanks, 

Tristan