summaryrefslogtreecommitdiff
path: root/main/streams/xp_socket.c
Commit message (Collapse)AuthorAgeFilesLines
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - size_t may be shorter than long and definitely is not signed. Note that theGustavo André dos Santos Lopes2012-03-041-1/+3
| | | | | z modifier was only added in C99, so we can't use it.
* Fixed bug #60106 (stream_socket_server silently truncates long unix socket ↵Ilia Alshanetsky2012-03-031-0/+1
| | | | paths)
* - Year++Felipe Pena2012-01-011-1/+1
|
* - PHP_STREAM_OPTION_WRITE_BUFFER no longer disables the read buffer of a plainGustavo André dos Santos Lopes2011-02-191-4/+0
| | | | | | | | | | stream when 0 is given as the value. - PHP_STREAM_OPTION_WRITE_BUFFER no longer changes the chunk size in socket streams. - Added stream_set_chunk_size() function. - Some signedness fixes. - Test for commit r308474, now that it's possible to actually test it.
* - Year++Felipe Pena2011-01-011-1/+1
|
* add backlock socket context option for stream_socket_server(),Michael Wallner2010-03-111-1/+1
| | | | | which had a hardcoded backlog of 5 at two occurrances
* Fixed bug #50787 (stream_set_write_buffer() has no effect on socket streams).Ilia Alshanetsky2010-01-181-0/+4
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* fix bug #50196Stanislav Malyshev2009-12-191-0/+4
|
* Fixed ext/standard/tests/streams/stream_get_contents_002.phptDmitry Stogov2009-09-231-1/+1
|
* - Fixed bug #49447 (php engine need to correctly check for socket API Sriram Natarajan2009-09-041-4/+12
| | | | | return status on windows). (Sriram Natarajan)
* MFB: Fixed bug #44874 (dead pfsockopen'ed sockets aren't reaped whenIlia Alshanetsky2009-02-091-1/+1
| | | | | the remote end restarts)
* MFH:Felipe Pena2009-01-071-1/+1
| | | | | | | - Added check for EWOULDBLOCK - Using EWOULDBLOCK instead of EAGAIN by portability issues (Related to #46917)
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH: Revert fix for 43782, as it caused problems.David Soria Parra2008-11-241-6/+2
|
* MFH: Fixed bug #43782 (feof() does not detect timeout on socket)David Soria Parra2008-08-261-2/+6
|
* MFH:- Fixed bug #44127 (UNIX abstract namespace socket connect does not work)Jani Taskinen2008-07-161-1/+1
|
* MFH: manage references of stream context properlyAntony Dovgal2008-07-111-1/+3
|
* char **error_message was passed but not used. This causes problems in casesAndrey Hristov2008-03-101-1/+1
| | | | | | of getaddrinfo() failure, because the upper layers don't get the error. initialize a variable because we were reading initialized in case of error.
* Fixed bug #44233 (MSG_PEEK undefined under BeOS R5)Ilia Alshanetsky2008-02-271-0/+4
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* Fixed bug #41984 (Hangs on large SoapClient requests)Dmitry Stogov2007-07-241-2/+6
|
* MFH:- Fixed bugs #36796, #36918, #41371 (stream_set_blocking() does not work)Jani Taskinen2007-07-171-11/+1
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* MFHAntony Dovgal2006-12-211-0/+1
|
* Added function stream_socket_shutdown(). It is a wraper for system ↵Dmitry Stogov2006-12-191-0/+18
| | | | shutdown() function, that shut downs part of a full-duplex connection
* MFH: fix crash when parsing invalid hostnames/IPsAntony Dovgal2006-10-111-3/+6
|
* MFH: Prevent bindport from being used uninitializedSara Golemon2006-02-021-1/+1
|
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* ZTS fix.Sebastian Bergmann2005-06-141-1/+1
|
* Added bindto socket context option.Ilia Alshanetsky2005-06-141-13/+34
|
* Make new poll stuff work on win32 (and still be safe on unix)Wez Furlong2004-09-171-0/+3
|
* Fix for Bug #24189: possibly unsafe select(2) usage.Wez Furlong2004-09-171-45/+16
| | | | | | | | | | | | | | | | | | | | | | | | | We avoid the problem by using poll(2). On systems without poll(2) (older bsd-ish systems, and win32), we emulate poll(2) using select(2) and check for valid descriptors before attempting to access them via the descriptor sets. If an out-of-range descriptor is detected, an E_WARNING is raised suggesting that PHP should be recompiled with a larger FD_SETSIZE (and also with a suggested value). Most uses of select(2) in the source are to poll a single descriptor, so a couple of handy wrapper functions have been added to make this easier. A configure option --enable-fd-setsize has been added to both the unix and win32 builds; on unix we default to 16384 and on windows we default to 256. Windows FD_SETSIZE imposes a limit on the maximum number of descriptors that can be select()ed at once, whereas the unix FD_SETSIZE limit is based on the highest numbered descriptor; 256 should be plenty for PHP scripts under windows (the default OS setting is 64). The win32 specific parts are untested; will do that now.
* Using int when long should be used.Ilia Alshanetsky2004-08-221-1/+1
|
* Fix for #29256 from Dmitry, very slightly modifiedWez Furlong2004-08-101-2/+38
|
* zts fix...Wez Furlong2004-07-311-1/+1
|
* Misc sendto/recvfrom tweaks that have been pending here for a while...Wez Furlong2004-07-311-1/+14
|
* Make sure this is initialized...Wez Furlong2004-07-311-0/+2
|
* More wordsize fixesArd Biesheuvel2004-03-081-2/+2
|
* Fix a bug in the persistent socket liveness checks and feof(); they wereWez Furlong2004-02-041-3/+7
| | | | | | | | | | | | | | | | | | using the default socket timeout of 60 seconds before returning the socket to the calling script. The reason they were using that value is that the same code is used for feof(), so the fix is allowing the caller to indicate the timeout value for liveness checks. A possible remaining issue now is that 0 second timeout[1] for pfsockopen is possibly too short; it's impossible to specify a sane value for all possible uses, so maybe we need a stream context or an .ini option to control this, or maybe use the timeout value that was passed to pfsockopen(). # [1] by timeout, I mean the time that PHP will wait for data on a # persistent socket before deciding if a new connection should be made; # NOT the timeout while waiting for a new connection to be established.
* - A belated happy holidays and PHP 5Andi Gutmans2004-01-081-2/+2
|
* this can't be persistentWez Furlong2003-12-021-1/+2
|
* Removed unused variables.Ilia Alshanetsky2003-11-301-0/+2
|
* Add stream_socket_sendto and stream_socket_recvfrom which work very muchWez Furlong2003-11-291-1/+58
| | | | | like sendto() and recvfrom() syscalls.
* (sort of) MFB, feof fix for sockets.Wez Furlong2003-11-281-1/+7
|
* port "liveness" checks and a couple of other things from the 4.3 branch.Wez Furlong2003-11-271-8/+25
| | | | | | Liveness checks are used to validate persistent socket connects when they are re-used.
* Set the EOF indicator after each read attempt.Wez Furlong2003-10-081-3/+1
| | | | | This prevents it getting stuck in the on position.
* Merge selectable descriptor casting from PHP_4_3 branch.Wez Furlong2003-06-281-0/+1
|