summaryrefslogtreecommitdiff
path: root/main/fastcgi.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug #78469Sergei Turchanov2019-08-301-2/+2
| | | | | | | | | | | | | | | | fcgi_accept_request function is supposed to call a FastCGI implementation's on_accept hook when entering an "accepting" stage (that is right before calling "accept"). This hook implementation (fpm_request_accepting) updates a worker state to an "accepting" state which is effectively an "Idle" state, and updates counters on the scoreboard of the corresponding pool (idle++, active--). But this is not done when listening for client connections on a named pipe on Windows platform. In that case a combination of ConnectNamedPipe/WaitForSingleObject is used (to be able to catch in_shutdown as far as I understand), but it is nonetheless functionally equivalent to "accept" call. Also by not calling on_hook neither a worker's state is updated to "accepting" state nor scoreboard counters are updated.
* year++Xinchen Hui2018-01-021-1/+1
|
* Merge branch 'PHP-7.0' into PHP-7.1Jakub Zelenka2017-04-301-2/+4
|\
| * Fix compiler warnings when compiled against musl libcMichael Heimpold2017-04-301-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | musl libc is complaining when <sys/poll.h> is used instead of <poll.h> so change this. This issue was reported for OpenWrt/LEDE where musl libc is the standard C library instead of e.g. glibc, see the following link for the original PR: https://github.com/openwrt/packages/pull/4263 Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Signed-off-by: Michael Heimpold <mhei@heimpold.de> -- v3: refined checks/fallback paths as suggested by @bukka v2: rebased to resolve merge conflict in main/php_network.h v1: initial PR
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-02-121-4/+6
|\ \ | |/
| * Fixed bug #69860Denis Yeldandi2017-02-121-4/+6
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-01-071-8/+14
|\ \ | |/
| * Fixed bug #67583Nikita Popov2017-01-071-4/+10
| | | | | | | | | | | | As fcgi_request is an opaque struct as of PHP 7, expose a new API function fcgi_end() which does fcgi_flush() with end=1 and checks/ sets the ->ended flag.
| * Rename fcgi_request.closed to .endedNikita Popov2017-01-071-6/+6
| | | | | | | | | | | | | | "closed" refers to whether FCGI_END_REQUEST has been sent, while the "close" operation does something entirely different. It gets extra confusing when fcgi_is_closed() does not actually return fcgi_request.closed...
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Fixed compilation warningsDmitry Stogov2016-06-281-2/+5
| |
* | Merge branch 'PHP-7.0'Xinchen Hui2016-06-281-1/+0
|\ \ | |/ | | | | | | | | | | | | | | * PHP-7.0: MFH: Fixed fd leak (the origin commit can not be cherry-picked) Conflicts: main/fastcgi.c sapi/cli/ps_title.c
| * MFH: Fixed fd leak (the origin commit can not be cherry-picked)Xinchen Hui2016-06-281-1/+1
| |
* | couple of resource leaks fixes and use after free'sDavid Carlier2016-06-271-0/+1
| |
* | Fixed compilation warningsDmitry Stogov2016-06-211-2/+2
|/
* Fixed bug #72308 (fastcgi_finish_request and logging environment variables)Xinchen Hui2016-06-021-1/+6
|
* fix #71609: Segmentation fault on ZTS with gethostbynameJoe Watkins2016-03-311-1/+1
|
* Also WIN32 sideXinchen Hui2016-01-291-3/+3
|
* Properly read any remaining data when closing FastCGI socketRobin McCorkell2016-01-291-3/+3
|
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
| | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
* Encapsulate FastCGI implementation details.Dmitry Stogov2015-06-231-5/+111
| | | | Previously fcgi_request defined in main/fastcgi.h might be treated differently in different files, because of different behavior of #ifdef TCP_NODELAY. This leaded to stack memory corruption and unpredictable crashes.
* reverted 0512b38 and 1411ca5Anatol Belski2015-05-261-27/+27
|
* Micro optimizationsXinchen Hui2015-05-261-15/+13
|
* fcgi_is_allowed should not log errorXinchen Hui2015-05-241-1/+1
|
* add the remaining useful symbols to the exportAnatol Belski2015-05-231-9/+9
|
* implement necessary symbol exportsAnatol Belski2015-05-231-18/+18
|
* Avoid multipy allocating of request envXinchen Hui2015-05-241-2/+7
|
* Use weak function for fcgi_logXinchen Hui2015-05-231-12/+24
|
* Fixed fpm-side (tests passes)Xinchen Hui2015-05-231-119/+188
|
* Use logger pointerXinchen Hui2015-05-191-7/+13
|
* Move fastcgi.c to mainXinchen Hui2015-05-191-0/+1564