Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.programmer Subject: Re: Network Timeouts Date: Sat, 29 Oct 2011 03:15:49 +0200 Organization: A noiseless patient Spider Lines: 30 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 29 Oct 2011 01:15:56 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="ylcYE5C53I2wjOlSVZ5APA"; logging-data="13636"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KYEzgsC5LO1LPz/0wd/qe" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15 In-Reply-To: Cancel-Lock: sha1:JcHd8b4CEtOoBRngAq8JITjWNxI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9289 On 28/10/2011 19:20, Tony allegedly wrote: > Hello: > I'm writing some code between a server and a client. The client > provides the server with packets on a continuous basis. If the server > does not receive a packet for 30 seconds it throws a timeout > exception. We are testing the robustness of the server. The client is > just a producer to packets with no interleave, fixed packet length and > random context. The next packet is sent as soon as the last ack is > received. It have been observed from the logs the I get the exception > throw information (which I wrote saying the exception has been throw). > and that's about all. My approach to solving this would to be to look > at what packets were going across the interface with something like > tcpdump. But I can't get root access on this system. I can't do much > on this system in regard to taking a really close look. Any hints? > Thanks in Advance. > Cheers Not sure I understand your question. Are you asking how you could best debug your application? Or how you could write it better so that it be more easily debugged? If the latter: logs, logs, logs, and JMX if you wanna be fancy. If the former, and you do not have some fine-grained logs you can enable, and can't sinff the traffic, then I guess you're pretty much screwed. -- DF. Determinism trumps correctness.