also the data should be broken, not in block.

在 2016年10月21日星期五 UTC+8下午2:56:19,van basten写道:
>
> Attached the server code. at line 154, "while (reader.read()) {" it will 
> throw
>
> java.net.SocketException: Connection reset
>         at java.net.SocketInputStream.read(SocketInputStream.java:196)
>         at java.net.SocketInputStream.read(SocketInputStream.java:122)
>         at java.net.SocketInputStream.read(SocketInputStream.java:210)
>         at java.io.DataInputStream.readByte(DataInputStream.java:265)
>         at 
> org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:82)
>         at 
> ExecutionDataServerWithDumpTimer$Handler.run(ExecutionDataServerWithDumpTimer.java:152)
>         at java.lang.Thread.run(Thread.java:812)
>
> as you can see, the reader keep the connection, always read the data from 
> jacoco agent. my question is if reconnection, will the bytes that already 
> read into the the server lost? since these data did not flush into the 
> local file, also for the data not sent successfully will still store on the 
> agent? 
>
>
>
> 在 2016年10月21日星期五 UTC+8下午2:29:23,Marc R. Hoffmann写道:
>>
>> Hi,
>>
>> to get an better picture what actually happens: Can you please provide 
>> the Java exceptions that JaCoCo prints to syserr when the connection gets 
>> disconnected?
>>
>> So what behavior do you expect from JaCoCo in tcpclientmode? Reconnect 
>> after failure?
>>
>> Regards,
>> -marc 
>>
>> On 21.10.16 07:27, van basten wrote:
>>
>> The problem for our environment is the network very unstable, alwasy lost 
>> connection after one hour.
>>
>> As you know, for tcpclient mode, the socket between jacoco agent and the 
>> server is always connected.
>>
>> Why we do not use the tcpserver mode? since we do not know how many 
>> machines installed jacoco agent, we need use the tcpclient mode to 
>> automatically connect to the server, then we can know.
>>
>> any unclear, please let me know.
>> -- 
>> 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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jacoco/36132c30-7f92-40fe-8cdf-0237286a148e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jacoco/36132c30-7f92-40fe-8cdf-0237286a148e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/6a46bfa9-7945-4040-93f4-a039de931612%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to