You are here: Socket connection reset by pear « PHP « IT news, forums, messages
Socket connection reset by pear

Posted by Martνn Marquιs on 05/05/05 15:20

I'm trying to build some communication aside of the server thin client stuff,
with a socket daemon and a socket client.

The daemon is the same that everybody can find in the PHP docs (example 1).
The client simply opens a connection to the daemon and writes data using the
socket Object from PEAR (last stable version). The problem is that it fails
to make a socket_read() with this message (on the daemon side):

Warning: socket_read() unable to read from socket [54]: Connection reset by
peer
in /space/home/martin/programacion/siprebi-1.2/ext/impresion/printSocket.php
on line 42
socket_read() failed: reason: Operation not permitted


If I open a telnet conection to the daemon, everything works like a charme. It
writes and quits OK.

What can be going wrong?

--
09:11:45 up 33 days, 17:40, 1 user, load average: 0.64, 0.79, 0.68
-----------------------------------------------------------------
MartΓ­n MarquΓ©s | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica | DBA, Programador, Administrador
Universidad Nacional
del Litoral
-----------------------------------------------------------------

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация