in reply to Can a socket listen for multiple hosts?

Hello,

It sounds to me like you are trying to reinvent the Apache web server. I would take a look at it with the mod_perl module enabled. Of course its not the best advice if you don't have a lot of experience with it, but you're asking questions about stuff that you really don't want to have to think about while trying to implement a customer's app.

Apache and a good framework like CGI::Application or Catalyst make it look like the issues you are considering now do not even exist. They are completely abstracted from you.

Regards,

EDIT: of course, the overhead of a full blown webserver might not fit your use case, so my advice may be irrelevant.

  • Comment on Re: Can a socket listen for multiple hosts?