[PHP-DEV] Bug #6914 Updated: persistent socket connection failure

2001-12-15 Thread sander

ID: 6914
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Sockets related
Operating System: Linux 2.2.17
PHP Version: 4.0.2
New Comment:

No feedback. Closing.

Previous Comments:


[2001-11-21 12:06:14] [EMAIL PROTECTED]

pfsockopen() works for me with latest RC
Can you try with latest RC and see if it works

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.




[2000-09-27 22:17:24] [EMAIL PROTECTED]

A UNIX socket connection is made using pfsockopen().  On the initial script entry, a 
message is sent to our server and the reply is correctly received by the script.  On 
subsequent script entries, messages to the server are still sent successfully, but 
upon attempting to reply a SIGPIPE is received by server, and the php script receives 
a 0-length reply to its fgets() read.

We traced the problem to ext/standard/file.c, in the routine _file_socket_dtor().  In 
that routine, the macro SOCK_FCLOSE is used, which calls php_sock_close() in fsock.c.  
This routine correctly handles the persistent socket.  However, after that call, 
_file_socket_dtor() then incorrectly calls the C routine shutdown(), which is what 
caused the problem.  In fact, php_sock_close() already completely takes care of the 
shutdown() (for the non-persistent case), so in any event the shutdown() call in 
_file_socket_dtor() is not necessary.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #6914 Updated: persistent socket connection failure

2001-11-21 Thread mfischer

ID: 6914
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Sockets related
Operating System: Linux 2.2.17
PHP Version: 4.0.2
New Comment:

pfsockopen() works for me with latest RC
Can you try with latest RC and see if it works

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.


Previous Comments:


[2000-09-27 22:17:24] [EMAIL PROTECTED]

A UNIX socket connection is made using pfsockopen().  On the initial script entry, a 
message is sent to our server and the reply is correctly received by the script.  On 
subsequent script entries, messages to the server are still sent successfully, but 
upon attempting to reply a SIGPIPE is received by server, and the php script receives 
a 0-length reply to its fgets() read.

We traced the problem to ext/standard/file.c, in the routine _file_socket_dtor().  In 
that routine, the macro SOCK_FCLOSE is used, which calls php_sock_close() in fsock.c.  
This routine correctly handles the persistent socket.  However, after that call, 
_file_socket_dtor() then incorrectly calls the C routine shutdown(), which is what 
caused the problem.  In fact, php_sock_close() already completely takes care of the 
shutdown() (for the non-persistent case), so in any event the shutdown() call in 
_file_socket_dtor() is not necessary.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]