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 6172345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:22:35+00:00 2026-05-23T23:22:35+00:00

I setup a quick Mojolicious server like this: use Mojolicious::Lite; get ‘/’ => sub

  • 0

I setup a quick Mojolicious server like this:

use Mojolicious::Lite;

get '/' => sub {
    my $self = shift;

    sleep 5; #sleep here, I'm testing multiple connections at once

    $self->render_text('Hello World!');
};

app->start;

I then start it with: perl Mojolicious.pl daemon --listen=https://127.0.0.1:3000

Problem is, if I run this command concurrently:

time curl https://127.0.0.1:3000/ -k

It seems to only use 1 thread for requests, because if I make multiple requests at once, they can take much longer than 5 seconds. It’s as if they are all queued up.

Am I missing something here? I’m wanting to use Mojolicous, but only if it can handle more than one client at a time.

  • 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-23T23:22:36+00:00Added an answer on May 23, 2026 at 11:22 pm

    mojo daemon is a standalone HTTP server meant for development use, not production, and it only runs a single thread. For production you would want to either use the fastcgi option and a FastCGI-supporting webserver, or install a nice PSGI-compatible server like Starman or Starlet or Plack::Handler::FCGI or Fastpass and then do

    plackup -s Starman --port 3000 Mojolicious.pl
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a setup that looks like this. class Checker { // member data
I'm working on a quick setup program in Visual Studio and wanted to change
I'm looking for a quick-and-dirty solution to this, I have to set up a
Setup : I have a Struts web application where I use displaytag elements to
I have a Zend Framework application based on the quick-start setup. I've gotten the
I keep getting this message (in the title). Just take a quick look at
My Quick Question is this: Everything seems to be working, except that Trac tickets
A quick Google search of this issue shows it's common, I just can't for
Quick overview Trying to insert a Business Object using ObjectDataSource (on a GridView) Get
I use an sql server regularly and have recently been getting frustrated by the

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.