ObjWebServer  Check-in [d69dfe4c1c]

Overview
Comment:Enable multi-threading
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d69dfe4c1c916cdc2d7cb88d5b14a55d22687d1692bac30c109667dd9bb4211e
User & Date: js 2019-03-03 12:52:14
Context
2019-03-03
13:27
Add support for TLS check-in: 441110b797 user: js tags: trunk
12:52
Enable multi-threading check-in: d69dfe4c1c user: js tags: trunk
12:50
Change license from AGPL3 to GPL3 check-in: b0f2d0f8b8 user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ObjWebServer.m.

88
89
90
91
92
93
94

95
96
97
98
99
100
101
- (void)startWebserverOnHost: (OFString *)host
			port: (uint16_t)port
{
	OFHTTPServer *server = [OFHTTPServer server];
	[server setHost: host];
	[server setPort: port];
	[server setDelegate: self];


	of_log(@"Starting server on host %@ port %" PRIu16, host, port);

	[server start];
}

-      (void)server: (OFHTTPServer *)server







>







88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
- (void)startWebserverOnHost: (OFString *)host
			port: (uint16_t)port
{
	OFHTTPServer *server = [OFHTTPServer server];
	[server setHost: host];
	[server setPort: port];
	[server setDelegate: self];
	[server setNumberOfThreads: [OFSystemInfo numberOfCPUs] + 1];

	of_log(@"Starting server on host %@ port %" PRIu16, host, port);

	[server start];
}

-      (void)server: (OFHTTPServer *)server