Skip to content

Instantly share code, notes, and snippets.

@beppu
Created October 14, 2009 23:46
Show Gist options
  • Save beppu/210501 to your computer and use it in GitHub Desktop.
Save beppu/210501 to your computer and use it in GitHub Desktop.
Continuity version of slowapp.psgi (from Plack)
#!/usr/bin/env perl
use strict;
use warnings;
use Continuity;
use Coro::Timer;
my $server = Continuity->new(
port => 4488,
cookie_session => 1,
query_session => 1,
path_session => 1,
);
$server->loop;
sub main {
my $request = shift;
Coro::Timer::sleep 0.1;
$request->print("Hello, World!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment