Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 924699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:23:59+00:00 2026-05-15T19:23:59+00:00

I have a Perl server and when it boots up, it connects to 1000+

  • 0

I have a Perl server and when it boots up, it connects to 1000+ clients. It takes about 30-45 minutes to setup all the connections with SSL. I’m trying to decrease the start time to something more reasonable. I tried playing with threads to offload the work, but can’t get it to work. Creating the socket in one thread and getting it back to the caller doesn’t quite work as expected. Tried passing the file descriptor and recreating with IO::Socket::SSL->new_from_fd() to recreate the socket back in the caller but fails.

Does anyone have any suggestions as to how to approach creating this many sockets quickly? Or at least faster than O(n)…

UPDATE: Looks like POE framework is definitely something that I want to explore. The docs sound like it can do what I need. I’m building a Proof of concept now and having trouble specifically with accessing the created Socket objects in the Sessions. I can create the sockets in the POE sessions, but then after they are done, I want my main program to collect the created sockets into one hash. Anyone know how to retrieve objects from POE Sessions?

UPDATE: Have an idea involving either using a global variable and adding the sockets to that within the sessions, or keeping references to the created sessions and accessing their heaps to aggregate them. Trying it now…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:24:00+00:00Added an answer on May 15, 2026 at 7:24 pm

    Have a look at this TCP SSL Client code in POE. The example can be easily extended to do what you requested. If you haven’t coded in POE before, there’s a learning curve, but it’s very well documented.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this Perl script sitting in the cgi-bin folder of my Apache server:
I have a Perl script that takes text values from a MySQL table and
I have a Perl script which nests foreach loops as seen below. It takes
I have a basic perl HTTP server using HTTP::Daemon . When I stop and
I'm have Perl 5.8 installed on all of our servers and wanted to use
I have a functional SOAP server using Perl and a C# client: SOAP Server
I have simple Perl/CGI scripts based web server which is mainly used to display
Currently I have a perl script that runs forever on my server, checking a
I am trying to get Apache::ASP running on OSX Lion Server. I have made
I have created a basic flash socket server in PHP, it all works fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.