Connection Reuse with Curl, Apache and mod_wsgi -


I am deploying a mod_wsgi application at the top of Apache, and a client program that uses curls.

On the curl API on the user side, I try to reuse the connection again, but looking at connections with Wirelesshark, I feel that for each HTTP request / response, a new connection is made.

At the end of every HTTP request, "Connection: Close" in the HTTP response header:

Does it live in the same way? What do I do on Apache / Mod_Wesby side to enable connection reuse?

You will not usually need to do anything for Apache because the general connection is normally Support defaults to keep running Check the KeepAlive instructions in Apache configuration to see how it has been fixed.

On that, the WSGI application should have to determine the length of the content in order to keep the live connection to work, or return a list for the response where the list contains only one string after this In case of mod_wsgi automatically add the length of the content to the response. Generally feedback will also require a successful response, because the connection can be closed due to most error reactions.

Even this did all this, the issue is whether there is also the ability of curl to bring many URLs to keep alive connections. Obviously not able to invoice curl individually So that you are asking the question that you are trying to use this curl feature. The only other option would be if you are connected to libcurl using a custom client and are using its library and therefore you mean libcurl.

Note that access to Apache is through proxy, then the proxy can not be applied, it is alive and stop the entire mechanism by doing the work.

To give more information, you need to know how to use curls.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -