Project

General

Profile

Feature #5648

Document that WServer::stop() also calls the blocking WIOService::stop()

Added by Kayra Akman over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/10/2017
Due date:
% Done:

0%

Estimated time:

Description

WIOService::stop() blocks, as documented, until all tasks, currently running or scheduled to run, are executed. If a task is scheduled with WIOService::schedule() and if this task also schedules the next task (the same task) before finishing, WIOService blocks indefinitely. Since the server is stopped before the IO service, the process gets blocked at WServer::stop(), and at ioService().stop() within WServer::stop(), without a running web server.

IMO a warning should be added to WServer::stop() documentation about this blocking behavior of WIOService::stop().

This issue is observed with wthttpd.

#1

Updated by Roel Standaert over 5 years ago

  • Status changed from New to Implemented @Emweb
#2

Updated by Roel Standaert over 5 years ago

  • Status changed from Implemented @Emweb to Resolved
#3

Updated by Roel Standaert over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF