Преглед на файлове

Say that tarbaby restarts drop no request, and drop a stale XXX

tarbaby's abstract and usage named only autoreload.  The server it runs
also lets a worker answer the connection it accepted before a HUP retires
it, which is the other reason to start tPSGI through it.

stream_raw_cgi() was documented as printing the HTTP status line for the
CGI.  It prints nothing of its own: it runs the file with the response
handle selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
troglodyne-bot преди 6 дни
родител
ревизия
8c23cfb45b
променени са 3 файла, в които са добавени 11 реда и са изтрити 9 реда
  1. 1 2
      README.md
  2. 10 6
      bin/tarbaby
  3. 0 1
      lib/TPSGI.pm

+ 1 - 2
README.md

@@ -196,7 +196,6 @@ and what it prints goes to the client.  The worker exits when it is done.
 
 Use when you just have a .cgi file you want to run without pipe-open.
 XXX this is extraordinarily unsafe, inefficient and kills workers.
-XXX it also has an 'apache-ism' of just assigning the HTTP status line for you.
 But sometimes you have to bite the bullet and do this to migrate stuff effectively.
 
 ## stream\_raw\_psgi($response, $query)
@@ -580,7 +579,7 @@ Current Maintainers:
 # CONTRIBUTORS
 
 - Andy Baugh <andy@troglodyne.net>
-- Kōan <morpheus@troglodyne.net>
+- troglodyne-bot <morpheus@troglodyne.net>
 
 # COPYRIGHT AND LICENSE
 

+ 10 - 6
bin/tarbaby

@@ -1,11 +1,11 @@
 #!/usr/bin/env perl
 
 # PODNAME: tarbaby
-# ABSTRACT: starman, with the autoreload that tPSGI does without Plack::Loader::Restarter
+# ABSTRACT: starman, with autoreload without Plack::Loader::Restarter, and restarts that drop no request
 
 use 5.040;
 use warnings FATAL => 'all';
-use re '/aa';
+use re '/aasx';
 
 use FindBin::libs;
 use Plack::Runner;
@@ -18,10 +18,14 @@ use TPSGI::Startup;
     tarbaby [--preload-app] [starman options] bin/tpsgi
 
 Starman, run as plackup would run it, with the server that
-L<Plack::Handler::TPSGI> provides.  Before it forks, it sets up inotify watches
-on F<lib/> and on the directory of each router, so that a worker notices a
-changed module and restarts the server, when C<autoreload> is on.  The workers
-load the application when they start, unless C<--preload-app> is passed.
+L<Plack::Handler::TPSGI> provides.  On a HUP, that server's workers answer the
+connection they have accepted before they retire, so a restart drops no
+request.  See L<TPSGI::Server>.
+
+Before it forks, tarbaby sets up inotify watches on F<lib/> and on the
+directory of each router, so that a worker notices a changed module and
+restarts the server, when C<autoreload> is on.  The workers load the
+application when they start, unless C<--preload-app> is passed.
 
 =cut
 

+ 0 - 1
lib/TPSGI.pm

@@ -1130,7 +1130,6 @@ and what it prints goes to the client.  The worker exits when it is done.
 
 Use when you just have a .cgi file you want to run without pipe-open.
 XXX this is extraordinarily unsafe, inefficient and kills workers.
-XXX it also has an 'apache-ism' of just assigning the HTTP status line for you.
 But sometimes you have to bite the bullet and do this to migrate stuff effectively.
 
 =cut