Thanks All for the information provided.
RB

On Tue, Feb 8, 2011 at 4:02 PM, Konstantin Kolinko
<knst.koli...@gmail.com>wrote:

> 2011/2/6 Caldarale, Charles R <chuck.caldar...@unisys.com>:
> >
> >> We have a simpleTCP cluster built between 2 Tomcat 6.0.18 nodes
> >
> > It would be beneficial for you to move up to a newer level - that one is
> over 2.5 years old, and lots and lots of fixes have gone in since then.
> >
> >> when we use another IP like 172.x.x.x then we see negative numbers
> >> being displayed on the log.
> >
> >> Not sure what is causing this. Can anybody tell me
> >> why this is happening?
> >
> > Because the IP address is kept in a byte array, and bytes, by definition,
> are signed.  Unless explicit action is taken to remove the sign extension,
> any values larger than 127 will be displayed as negative.
> >
> > It appears to be fixed in Tomcat 7.0.8, and possibly sometime before
> that, but not in any 6.0 level.  You're welcome to dig through the code
> changes to find out exactly when the fix was created.
>
> AFAIK, that was backported to TC6 more than a year ago,
> http://svn.apache.org/viewvc?view=revision&revision=892521
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Rajeshwar BM
Bangalore INDIA

Reply via email to