[Resin-interest] Resin 4.0 Questions

2011-10-17 Thread Aaron Freeman
We are on the latest and greatest Resin 4.0, and would like to have a single
resin.xml file that:

 

1) imports host.xml, which defines:

- a keystore to use and the passwords for the keystore

 

2) on different servers we would like to overwrite the host.xml so we can
change:

- host aliases

- reference a different keystore

- add additional host sections



Is all of this possible with resin:import, or is it not possible to pull
this off?

 

Thanks,

 

Aaron

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Possible Bug Fix?

2011-10-17 Thread Aaron Freeman
In AbstractHttpRequest I am seeing that the global variable _contentLength
it appropriately a long.  Love that.  Been a thorn in our side for a long
time.

 

However in looking at this method (also inside of AbstractHttpRequest):

 

  protected void setContentLength(CharSegment value)

  {

int contentLength = 0;

int ch;

int i = 0;

 

int length = value.length();

for (;

 i  length  (ch = value.charAt(i)) = '0'  ch = '9';

 i++) {

  contentLength = 10 * contentLength + ch - '0';

}

 

if (i  0)

  _contentLength = contentLength;

  }

 

The method is internally using an int, so the values get truncated or
wrapped to negative values.  Internally I believe that method should use a
long for the local contentLength variable.

 

This should help prevent HttpRequest from incorrectly throwing this for
request larger than 2GB (which is what the user community would see in their
logs if they are dumping exceptions):

  throw new com.caucho.server.dispatch.BadRequestException(POST
requires content-length);

 

Thanks,

 

Aaron

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest