Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resolved: Reading from a Socket's InputStream



Bob Krause wrote:

>I was using a Reader to parse the headers,
>but was using the socket's InputStream to read the contents. What I
>didn't fully appreciate was that the Reader was buffering data.

Congratulations on finding the bug's cause and the fix.

What I can't figure out, though, is why it worked on XP.

AFAIK, a BufferedReader is identical on both platforms, and if it's reading
too far ahead into the content body, then I would expect similar
(mis)behavior on XP.  Yet you said the code worked on an XP-to-XP
connection.

I understand that you may not be interested in solving this mystery.  I was
really just wondering if you'd found any reason along the way as to why it
would have worked on XP.  I'm curious because this seemed to me to be an
important misleading clue, pointing at platform-specific differences rather
than a portable bug in the code.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.