jicarilla-sandbox/platform/components/http/impl/src/java/org/jicarilla/http HTTPParserImpl.java,1.4,1.5

[email protected]
Newsgroups gmane.comp.java.jicarilla.cvs
Message-ID <[email protected]>
Update of /cvsroot/jicarilla/jicarilla-sandbox/platform/components/http/impl/src/java/org/jicarilla/http
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9102/platform/components/http/impl/src/java/org/jicarilla/http

Modified Files:
	HTTPParserImpl.java 
Log Message:
the limit may not correspond to how much is remaining in the source. When that happens, we still need to stop. Duh!

Index: HTTPParserImpl.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/components/http/impl/src/java/org/jicarilla/http/HTTPParserImpl.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- HTTPParserImpl.java	25 Jan 2004 22:12:18 -0000	1.4
+++ HTTPParserImpl.java	19 Feb 2004 17:28:43 -0000	1.5
@@ -190,7 +190,7 @@
         // parse byte-by-byte
         // todo test against this
         // while( getContext().source.hasRemaining() )
-        for( int i = 0; i < getContext().limit; i++ )
+        for( int i = 0; i < getContext().limit && getContext().source.hasRemaining(); i++ )
         {
             //try
             //{



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.