Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The Uima AS service doesnt time out idle connections to a broker. This may lead to an exception:
ERROR TransportConnector - Could not accept connection : java.net.SocketException: Too many open files
java.net.SocketException: Too many open files
This problem may occur when a client application repeatedly restarts Uima Client API many times. After each restart the client sends a CAS and receives a response, then it is stopped. The service accumulates connections to the client's temp reply queue. When the client terminates the broker kills the temp queue but the service still keeps the connection open causing a leak.
Start a timer after each reply.