-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle HTTP requests one-by-one (#238)
By handling HTTP requests one-by-one rather than spawning a thread for each request, an attacker can no longer force the app to create multiple threads. It also leads to simpler code and fixes the failure to free the memory allocated for the request.
- Loading branch information
1 parent
aaf835e
commit 1b71543
Showing
4 changed files
with
13 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#pragma once | ||
#include <fcgiapp.h> | ||
|
||
typedef void (*fcgi_request_callback)(void* request_void_ptr, void* userdata); | ||
typedef void (*fcgi_request_callback)(FCGX_Request* request, void* userdata); | ||
|
||
int fcgi_start(fcgi_request_callback request_callback, void* request_callback_parameter); | ||
void fcgi_stop(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters