Althttpd

Check-in [161f212d9e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Do not set a start-up timer when operating in stand-alone mode.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 161f212d9e2485a656981f972f9e8b502450e7d20dc79403de0e8cfb1efba0db
User & Date: drh 2022-03-20 15:58:48.075
References
2022-03-20
16:00 Reply: 202203031915 and Later Crashes on Alpine Linux ... (artifact: 2261ca00b6 user: drh)
Context
2022-03-21
15:06
Allow longer input lines on the HTTP request. ... (check-in: 0869197fa5 user: drh tags: trunk)
2022-03-20
15:58
Do not set a start-up timer when operating in stand-alone mode. ... (check-in: 161f212d9e user: drh tags: trunk)
2022-03-18
09:56
Added another dir-browsing CGI script to contrib/, from forum post d63822d97a17e968. ... (check-in: ea9a2cc198 user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to althttpd.c.
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
  /*
  ** 10 seconds to get started
  */
  signal(SIGALRM, Timeout);
  signal(SIGSEGV, Timeout);
  signal(SIGPIPE, Timeout);
  signal(SIGXCPU, Timeout);
  SetTimeout(10, 806);  /* LOG: Timeout startup */

#if ENABLE_TLS
  /* We "need" to read the cert before chroot'ing to allow that the
  ** cert is stored in space outside of the --root and not readable by
  ** the --user.
  */
  if( useHttps>=2 ){







|







3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
  /*
  ** 10 seconds to get started
  */
  signal(SIGALRM, Timeout);
  signal(SIGSEGV, Timeout);
  signal(SIGPIPE, Timeout);
  signal(SIGXCPU, Timeout);
  if( !standalone ) SetTimeout(10, 806);  /* LOG: Timeout startup */

#if ENABLE_TLS
  /* We "need" to read the cert before chroot'ing to allow that the
  ** cert is stored in space outside of the --root and not readable by
  ** the --user.
  */
  if( useHttps>=2 ){