FreeBSD pecl-shape, pecl-params ports; mini_httpd response timeout hack
Submitted pecl-shape and pecl-params ports. Finally got subscribed to freebsd-ports mailing list, will propose to take over tdb port (and with that, submit pecl-tdb).
For those using mini_httpd and wanting it to NOT timeout after 300 seconds, edit mini_httpd.c and comment out the following lines:
1 2 3 4 5 6 7 8 9 10 11 | #ifdef HAVE_SIGSET (void) sigset( SIGALRM, handle_write_timeout ); #else /* HAVE_SIGSET */ (void) signal( SIGALRM, handle_write_timeout ); #endif /* HAVE_SIGSET */ (void) alarm( WRITE_TIMEOUT ); |
For some reason, read timeouts were also kicking in unexpectedly, so those having this issue, comment out read timeouts accordingly (or increase READ_TIMEOUT).
With this, I can have the load test run unmonitored on the embedded box for several hours whilst pursuing more enjoyable pursuits such as watching Dexter.