ID:               49341
 Comment by:       netnghia at yahoo dot com
 Reported By:      jolan at gormsby dot com
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: OpenBSD 4.6-current
 PHP Version:      5.2.10
 New Comment:

After I add define SO_REUSEPORT to ext/sockets/sockets.c
I configure, make, make install php-5.2.9 again,  I have error:

Warning: socket_set_option(): unable to set socket option [92]:
Protocol not available in /usr/share/gds_ftps/gds_ftpd.php on line 985

I don't know what to do to fix. It seem SO_REUSEPORT still cannot use.

Any suggestion?


Previous Comments:
------------------------------------------------------------------------

[2009-08-24 00:26:04] jolan at gormsby dot com

Description:
------------
SO_REUSEPORT is needed to allow separate processes to bind to the same

port. Add the following to ext/sockets/sockets.c after SO_REUSEADDR:

#ifdef SO_REUSEPORT
       REGISTER_LONG_CONSTANT("SO_REUSEPORT",  SO_REUSEPORT,   CONST_CS

| CONST_PERSISTENT);
#endif

I believe SO_REUSEPORT is not available under Windows, hence the ifdef.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49341&edit=1

Reply via email to