The Apache Haus Forum

Forum Topics => Apache Programming and Building => Topic started by: jimyoo on May 30, 2012, 02:15:14 AM

Title: handling multiple requests using same connection
Post by: jimyoo on May 30, 2012, 02:15:14 AM
I try to write an apache module (in C) which handlers 1000s of clients uploading files periodically (say every 10 sec) through https.

Because of the ssl handshak for each request, the CPU usage is huge in the server side.
I wonder if there is a way to keep the http connection (per client) so the next requests may use the previous connection unless there is timeout. What API/logic should I use to solve this problem?

I am new to this apache stuff so any comment will be helpful.

Thanks in advance,
Title: Re: handling multiple requests using same connection
Post by: Gregg on May 31, 2012, 05:51:46 AM
You will probably have better luck with this on the module authors mailing list
http://mail-archives.apache.org/mod_mbox/httpd-modules-dev/
Title: Re: handling multiple requests using same connection
Post by: mario on May 31, 2012, 12:34:58 PM
Using the KeepAlive feature plus the session cache should save CPU time. But might reduce the number of simultan requests, depending on the config and available RAM.
Title: Re: handling multiple requests using same connection
Post by: jimyoo on June 01, 2012, 10:52:01 PM
Thanks for the comments.
For now, it seems I'd better study more on apache before asking to many basic stuffs.
Title: Re: handling multiple requests using same connection
Post by: jimyoo on June 14, 2012, 06:17:11 PM
It is simpler than I thought. As mario said, having KeepAliveTimeout long enough solves the issue.