Funnily enough this is exactly the question I was researching so fortunate to see it asked and answered so recently.
Our use case (proposed use case) is to stand up a central server (coverage collection server) to request/receive JaCoCo data periodically and store it, probably on a rolling window basis. We would deploy the agents against Tomcat apps in tcpclient mode, with sessionIDs identifying which application is being instrumented. These tomcat servers (tcpclient) would be used for automated and manual test cases, sometimes over the course of days, and the servers would be expected to be "up" without restarts for long periods of time. Presumably the collection server could at some point be bounced or fail, at which point all of the tcpclients would be hung and need to be restarted. The idea I'd been considering as I look though the code was to add an optional "retry" setting specific to tcpclient that would cause TcpOutputClient to create a new TcpConnection on failure (possibly after some delay, which conceptually could be configurable). It seems relatively clear to me how to retrofit this. For my use case at least, I would ignore any data that happened to be in transit during a failure. I have not looked at what would happen to the visitor if the server were killed during data transmission. Mark, if I were to do this work, add the test cases, update the documentation, would this be a pull request that would be considered? Or is this functionality that you do not consider a fit for the project? What is the right process to surface this for consideration? Thank you Nathan On Tuesday, September 29, 2020 at 12:23:24 AM UTC-4 Marc R. Hoffmann wrote: > Hi, > > there is no reconnect mode. And I doubt it’s a good idea to add one. As > the event “TCP Server down” can happen at any point in time there are > arbitrary error conditions in the client incl. data loss . > > Regards, > -marc > > > On 29. Sep 2020, at 03:33, il2s...@gmail.com wrote: > > > I couldn't find > > retry tcp connection in "tcpclient" mode when it lost it's connection. > > > For Example, > > TCP Server <------- jacocoagent(tcpclient mode) > > 1. Conneciton established > 2. TCP Server down > 3. Connection lost > 4. TCP Server restart > 5. No retry > > Have any idea for this ? > > Thank you. > > > > -- > You received this message because you are subscribed to the Google Groups > "JaCoCo and EclEmma Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jacoco+un...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/d7ef4354-1fef-4ee0-b7dc-18782e81e6c1o%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/d7ef4354-1fef-4ee0-b7dc-18782e81e6c1o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/fd81ebeb-fefc-412f-953c-c12d0d4e8d56n%40googlegroups.com.