i'm using this library in order to print to thermal printers via ethernet: https://github.com/Simonefardella/escposprinter
But, when i'll launch a lot of prints, after a while i'm getting error 32 Broken Pipe.
I don't know why, and i really need a solution, because, if i'll launch from two different ip's two prints everything stop working and i have to relaunch the print command...
I don't know why, there is something related with the socket?
Many thanks.
You get Broken Pipe error
because one of your end tries to send data to an already closed connection, in this case the printer.
Most probably the socket is closed after a sometime, or for a request it ends with a timeout which results in a closed connection.
What are you saying is that only after a while you get this error. Try to re-connect when you get [Errno 32] Broken pipe
.