in reply to Re: How to cache a socket in cgi programming?
in thread How to cache a socket in cgi programming?

I already know that each mod_perl process would keep a connection to the database. But the problem is, my program is not connectting to a database. So, Apache::DBI can not help me. Keeping a local copy of data is unaccpetalbe because the data might change quickly. Maybe I should give more details of my task. My job is writing the configuration module for a embeded system that allows administrator to manage it remotely by a client program. The client and server talk to each other by a private protocol. Now my boss realized that CS is not as popular as BS. So he asked me to give him a BS resolution but I should not change codes on the server side. So my plan is like this: | Browser |<---http---->| Web Server |<--private protocol-->| Data |
  • Comment on Re^2: How to cache a socket in cgi programming?

Replies are listed 'Best First'.
Re^3: How to cache a socket in cgi programming?
by Fletch (Bishop) on May 23, 2006 at 12:34 UTC

    Sorry, I should have been more clear and said "connections like database connections (see Apache::DBI for an example how)". Even if you're not specifically caching a DBI handle the principle is the same and you could gain insight into implementation by looking at that module.