Project

General

Profile

Bug #1812

lighttpd delays unnecessarily before exiting

Added by peto about 11 years ago. Updated over 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
2008-10-31
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:

Description

lighttpd spends unnecessary time waiting when ^C is pressed, even after connections are done closing down.

When srv_shutdown is set, continue so we don't sit in fdevent_poll for a full second.

When joining threads, wake them up, so we don't sit around for up to their full period. This has a minor hack because of an arbitrary limitation in glib: it refuses to queue NULL in an async queue.

Associated revisions

Revision 2538 (diff)
Added by stbuehler over 10 years ago

Send gthread dummy pointers to wake them up for faster exit (thx peto, fixes #1812)

History

#1

Updated by peto about 11 years ago

  • Status changed from New to Patch Pending
#2

Updated by peto almost 11 years ago

gthread_aio patch for completeness, obvious but fell out of the original patch

#1795 would need this, too.

#3

Updated by stbuehler over 10 years ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2538.

Also available in: Atom