Hi,
I am using the akka http scaladsl library to do a HTTP calls against a server. I am running a test where I have 15 threads running concurrently each making around 250 GET calls(15*250). Trying to run this test for three hours but I see that after two and half hours of execution I could see
Detail: akka.stream.StreamTcpException: Connection failed. exception being thrown.
Initially I thought the servers isn't accepting the incoming requests. But, ran the same test directly against the server and could see no issues.
Code snippet to connect to the server -
connectionFlow= Http(context.system).outgoingConnectionTls(req.uri.authority.host.address(), port)
Source.single(req.withUri(req.uri.toRelative)).via(connectionFlow).runWith(Sink.head) - Here, req is the HttpRequest.
Could someone please help me out why is that StreamTcpException exception is thrown?