0

While sending a large file to a Zebra Printer on the network (connected over wireless), the PHP script is throwing an error saying:

PHP Notice: fwrite(): send of 5932 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.

The printer has an internal print server and I have access to its settings.

I am trying to figure out how to solve this, but got no clue.
Anyone could help me please? Thank you.

Nirmal
  • 389
  • 1
  • 5
  • 15
  • You could use something like tcpdump to see the exact contents of your connection to the printer and that may be able you. Past that your probably almost certainly has more to do with your software then something with the network. – Zoredache Oct 03 '10 at 08:42
  • @Zoredache - Thank you. The analyzer helped me to figure out the issue. Thanks again. – Nirmal Oct 06 '10 at 05:22

1 Answers1

0

Sorry to answer my own question, but thought this might be useful to someone.

I found what's causing the trouble. The wireless connection between the access point and the printer was not stable. When the wireless failed for a second and came back to operation the next moment, that small interval was enough for the server to throw the 10054 error.

The solutions I had in hand were to either migrate to a more robust wireless infrastructure, or to connect the printer through wire. I opted for the wired connection and everything worked normal.

Nirmal
  • 389
  • 1
  • 5
  • 15