login community faq

I am running a server which holds packages for Emacs's package.el system. Simply put, it's the package manager for Emacs24.

The problem is, if there are multiple packages available from my repository, the TCP connection to the server remains open during the installation. The steps are,

  1. Download package
  2. Compile package
  3. Install package
  4. Repeat 1-3 for next package

The problem is that -- for some larger packages -- the connection times out because of the Timeout setting in Apache.

I tried running a local instance of the Apache server, but it doesn't seem to work. Looks like nginx is the proxy and has a 65 second timeout.

It looks like in the system wide Apache configuration, Keepalive is disabled so this should technically work and tell the client not to try an re-use the connection... But I am not having luck with this.

asked Dec 05 '11 at 11:00

milkypostman's gravatar image

milkypostman
11

In our control panel, what app type are you using to serve the packages?

(Dec 05 '11 at 13:19) seanf ♦♦ seanf's gravatar image

I've tried a number of different ones: Static/CGI/PHP, Static only (no .htaccess), and I also tried a Django/mod_wsgi one where I changed all the apache settings to enable long keep alive.

also, sorry it took me so long to reply, I didn't have notifications setup.

(Dec 10 '11 at 00:19) milkypostman milkypostman's gravatar image

Keep alive connections do not persist because of the nature of the nginx proxy. Apps 'in front' of the proxy have HTTP/1.1 and have a set keepalive for 3 seconds. Apps 'behind' the proxy have HTTP/1.0 and it does not have keepalive connections.

Is it possible to use another protocol like SSH? If not directly than for testing you may want to try an SSH tunnel. That would allow you to rule nginx out as a possibility without having to change the account. If bypassing nginx does work we can open a port with a Dedicated IP address.

answered Dec 10 '11 at 01:52

johns's gravatar image

johns ♦♦
345427

I tried with an ssh tunnel directly to the port of a django install configured to only serve up static files and it seems to work great. So it must be the nginx proxy.

I'm not sure all what a dedicated IP implies and I don't really want to pay for it. I'll have to think about it.

(Dec 15 '11 at 12:25) milkypostman milkypostman's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×151
×129
×13

Asked: Dec 05 '11 at 11:00

Seen: 920 times

Last updated: Dec 15 '11 at 12:25

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited