LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need a Help in Apache (https://www.linuxquestions.org/questions/linux-newbie-8/need-a-help-in-apache-787800/)

sumanch 02-08-2010 10:56 AM

Need a Help in Apache
 
I have a Apache web server running in my Linux machine . In one of the scenario I need to send a "Keep Alive" response , so that it remains persistent . I have written following code to generate response in Apache server side code .

aInReq->status = HTTP_OK;
aInReq->status_line = ap_get_status_line(aInReq->status);
ap_set_content_type(aInReq, "application/soap+xml");
aInReq->connection->keepalive = AP_CONN_KEEPALIVE;


But when I get a response I see in header that "Connection" property is set to "closed" . Please let me know how I can generate a keep alive response in Apache .

regards
Suman

rweaver 02-08-2010 02:59 PM

Do you have KeepAlive turned On in the apache config?


All times are GMT -5. The time now is 05:47 PM.