Re: Sending via JxtaSocket sends smaller chunks as time progresses
Vanessa Williams <[email protected]> Tue, 18 Apr 2006 19:04:26 -0400
| Newsgroups | gmane.comp.java.jxta.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Ronnie, I have never seen this type of behaviour with sockets before. It's very strange. Where exactly did you get the numbers below? Any chance you can provide a log (or fragment thereof) which shows the problem in detail? Perhaps someone can pick up a clue out of it. Cheers, Vanessa On 18-Apr-06, at 4:06 PM, Ronnie Schwartz wrote: > Below is a listing of what happened. I sent an image of 46588 > bytes over a > socket. The chunks were received as follows. First read returned > 8192 > bytes, the 2nd 16384, the 3rd 13917, and then for the rest of the > transfer, > each read only read 68 bytes! Took forever to transfer the image. > Does > anyone realize what is going on here. > > Everything is in bytes. > Buffer size: 16384 > > 0 of 46588 -- 8192 > 8192 of 46588 -- 16384 > 24576 of 46588 -- 13917 > 38493 of 46588 -- 68 > 38561 of 46588 -- 68 > 38629 of 46588 -- 68 > 38697 of 46588 -- 68 > 38765 of 46588 -- 68 > 38833 of 46588 -- 68 > 38901 of 46588 -- 68 > . > . > . > > ------------------ > Ronnie Schwartz > RustyBrick > www.rustybrick.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Vanessa Williams Oponia Networks [email protected]