Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail NNTP-Posting-Date: Mon, 03 Oct 2011 15:08:09 -0500 From: "Qu0ll" Newsgroups: comp.lang.java.programmer References: In-Reply-To: Subject: Re: Buffered reading seems to corrupt data stream Date: Tue, 4 Oct 2011 07:07:00 +1100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 Message-ID: Lines: 20 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 124.168.28.143 X-Trace: sv3-rWVC/NhYYX/tt/ObXVmgbAeqfWCPTB6CodYrj9DR+WalRhkT0wfbyGtZaRUjE/ftXO+iVt2WkY2vJId!y4xhrAWTPl8FcoqqfeKYrQ42V7+svGsVrMm2axhoRonWVfxSvnY/JXJDHeLDV5sVpYe1hRk8B2vs!n+eKQPYMKYAkba8l/UkYuQ== X-Complaints-To: abuse@westnet.com.au X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2171 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8503 "Ronny Schütz" wrote in message news:pe2pl8-h72.ln1@groombridge34.de... > It might be, that the BufferedInputStream used for the first read > already read data belonging to the second message, that will get lost > when you dispose the BufferedInputStream and will be missing from the > next read call. The garbage size read is most likely actually a part of > the payload bytes. Try to synchronize server and client somehow to > verify. Better reuse the complete stream chain. Thanks Ronny. Could you please explain what you mean by "reuse the complete stream chain"? -- And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]