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();
|