php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61769
Patch 61769.patch.txt revision 2012-05-04 22:31 UTC by mattficken@php.net
Patch php_cli_server_017.diff revision 2012-04-19 14:15 UTC by ab@php.net
Patch php_cli_server.diff revision 2012-04-18 21:21 UTC by mattficken

Patch php_cli_server.diff for Built-in web server Bug #61769

Patch version 2012-04-18 21:21 UTC

Return to Bug #61769 | Download this patch
Patch Revisions:

Developer: mattficken

--- a/sapi/cli/php_cli_server.c	2012-04-18 12:12:16.061618995 -0700
+++ b/sapi/cli/php_cli_server.c	2012-04-18 12:12:20.388618813 -0700
@@ -1161,12 +1161,13 @@
 			continue;
 		}
 
-#ifdef SO_REUSEADDR
+//#ifdef SO_REUSEADDR
+// make sure SO_REUSEADDR is always set (what OS doesn't have this flag anyway?)
 		{
 			int val = 1;
 			setsockopt(retval, SOL_SOCKET, SO_REUSEADDR, (char*)&val, sizeof(val));
 		}
-#endif
+//#endif
 
 		if (bind(retval, sa, *socklen) == SOCK_CONN_ERR) {
 			err = php_socket_errno();
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 23:01:28 2024 UTC