Hi,
I have an application in which I am using ClientServer "pinned" method for Java Python communication(Python being called from Java).
Call is initiated from UI thread, which executes both Java and Python processes in the same UI thread.
Everything runs fine if there is small number of requests, but If the number of requests per second is huge, my process break with the below exception.
And thereafter, the process stops receiving any incoming requests (Until a server restart).
I need help from experts here to understand what is going wrong here, and how to resolve this issue.
2017-12-27 14:19:40,154 - INFO - Error while python server was waiting fora message
Traceback (most recent call last):
File "/home/anaconda2/lib/python2.7/site-packages/py4j/clientserver.py", line 510, in wait_for_commands
proto.ERROR_RETURN_MESSAGE.encode("utf-8"))
File "/home/anaconda2/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 32] Broken pipe
2017-12-27 14:19:40,154 - INFO - Closing down clientserver connection
2017-12-27 14:19:40,154 - DEBUG - Exception while shutting down a socket
Traceback (most recent call last):
File "/home/anaconda2/lib/python2.7/site-packages/py4j/java_gateway.py", line 460, in quiet_shutdown
socket_instance.shutdown(socket.SHUT_RDWR)
File "/home/anaconda2/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 107] Transport endpoint is not connected
Regards
Prateek Dorwal