Configuring sab+cherrypy to serve compressed (gzipped) pages?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
madwoota
Newbie
Newbie
Posts: 4
Joined: December 17th, 2008, 7:52 am

Configuring sab+cherrypy to serve compressed (gzipped) pages?

Post by madwoota »

Not sure if this goes under feature requests, bug reports, or just user help, so here goes...

I've noticed that the included config for cherrypy does not enable the (http) server to serve compressed pages dependant on client Accept-Encoding headers (eg: gzip).

So I enabled it. And it broke :D

No idea whether I enabled it properly or not, but what I did was add "'gzip_filter.on': True," to the default_global = { } section in ./cherrypy/config.py and restart sab.

The server started up, and when I brought up the queue page, the response headers DID include the "Content-Encoding: gzip" and "Vary: Accept-Encoding" headers to indicate a compressed page, however the entire content of the response itself became:

Code: Select all

"......HI..Unrecoverable error in the server."
(But it WAS compressed!)

Which seems to indicate that sab can't cope with serving compressed pages? Or did I need to enable something else?
Has anyone even tried to do this before? :)

Hope someone can help ... thanks!

Edit: Er, duh, I'm using sab 0.4.6 (final) and Firefox 3.0.4+Opera 9.5 browsers...
Last edited by madwoota on December 18th, 2008, 3:26 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Configuring sab+cherrypy to serve compressed (gzipped) pages?

Post by shypike »

We're working on integrating CherryPy-3, which should make this work.
So we won't put much effort in CherryPy-2 issues.
madwoota
Newbie
Newbie
Posts: 4
Joined: December 17th, 2008, 7:52 am

Re: Configuring sab+cherrypy to serve compressed (gzipped) pages?

Post by madwoota »

K, no worries.

That sounds like a major-ish change though? Cherrypy 3 targeting 0.5.x or so?
I've noticed the -cp3 branch in svn, so I might have a go at that one/keep an eye on it/see if it even works :)

Cheers.
Post Reply