Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
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 3 '10 at 8:42
    
@Zoredache - Thank you. The analyzer helped me to figure out the issue. Thanks again. –  Nirmal Oct 6 '10 at 5:22

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.