The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: handling multiple requests using same connection  (Read 4738 times)

jimyoo

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
handling multiple requests using same connection
« 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,
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 831
Re: handling multiple requests using same connection
« Reply #1 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/
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Re: handling multiple requests using same connection
« Reply #2 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.
Logged

jimyoo

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
Re: handling multiple requests using same connection
« Reply #3 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.
Logged

jimyoo

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
Re: handling multiple requests using same connection
« Reply #4 on: June 14, 2012, 06:17:11 PM »

It is simpler than I thought. As mario said, having KeepAliveTimeout long enough solves the issue.
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13