tomcat7.0
19 years ago- Fix a regression on classic EL expressions inside elements.
remm [Fri, 3 Nov 2006 00:05:34 +0000 (00:05 +0000)]
- Fix a regression on classic EL expressions inside elements.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@470609 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Add translation time type checks for String.
remm [Thu, 2 Nov 2006 22:56:45 +0000 (22:56 +0000)]
- Add translation time type checks for String.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@470584 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Redo the checkXmlAttributes method, as I could not sneak in the type checking for...
remm [Thu, 2 Nov 2006 14:30:39 +0000 (14:30 +0000)]
- Redo the checkXmlAttributes method, as I could not sneak in the type checking for litterals that are passed to
  methods (or values, right ?). Unfortunately, some translation time (rather than runtime) errors are needed for these.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@470373 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Indentation.
remm [Thu, 2 Nov 2006 11:06:03 +0000 (11:06 +0000)]
- Indentation.
- Fix a woops which led to ignoring the jsp config for the encoding.
- Send an error for a 2.0 version for the 2.1 tag attributes.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@470325 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- i18n handling fixes (according to what the spec authors think is what should be...
remm [Thu, 2 Nov 2006 03:50:14 +0000 (03:50 +0000)]
- i18n handling fixes (according to what the spec authors think is what should be done, at least).

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@470216 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Fix woops.
remm [Wed, 1 Nov 2006 12:56:33 +0000 (12:56 +0000)]
- Fix woops.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469893 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Check for some of the errors.
remm [Wed, 1 Nov 2006 12:42:53 +0000 (12:42 +0000)]
- Check for some of the errors.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469890 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- For tag files, also put attributes in the wrapped jspContext.
remm [Wed, 1 Nov 2006 10:59:20 +0000 (10:59 +0000)]
- For tag files, also put attributes in the wrapped jspContext.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469855 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Always call jspInit (some work in always done there, now).
remm [Wed, 1 Nov 2006 10:04:21 +0000 (10:04 +0000)]
- Always call jspInit (some work in always done there, now).

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469842 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Adjust the tests for deferred expressions evaluation.
remm [Wed, 1 Nov 2006 01:20:18 +0000 (01:20 +0000)]
- Adjust the tests for deferred expressions evaluation.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469739 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Better impl of JSP id consumer: actually this was implemented for regular custom...
remm [Tue, 31 Oct 2006 21:47:45 +0000 (21:47 +0000)]
- Better impl of JSP id consumer: actually this was implemented for regular custom tags, but not for simple tags.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469669 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Add parsing of implicit.tld for tag files.
remm [Tue, 31 Oct 2006 16:28:55 +0000 (16:28 +0000)]
- Add parsing of implicit.tld for tag files.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469542 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Taglibs have their own version number, so isExpression gets an adjustment allowing...
remm [Tue, 31 Oct 2006 14:27:22 +0000 (14:27 +0000)]
- Taglibs have their own version number, so isExpression gets an adjustment allowing not checking for deferred
  expressions.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469498 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Add two allowed directives.
remm [Tue, 31 Oct 2006 12:53:43 +0000 (12:53 +0000)]
- Add two allowed directives.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469468 13f79535-47bb-0310-9956-ffa450edef68

19 years agoafter close has been called we are no longer a comet thingy
fhanik [Mon, 30 Oct 2006 18:09:38 +0000 (18:09 +0000)]
after close has been called we are no longer a comet thingy

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469213 13f79535-47bb-0310-9956-ffa450edef68

19 years agocancel the keys
fhanik [Mon, 30 Oct 2006 18:07:22 +0000 (18:07 +0000)]
cancel the keys

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469212 13f79535-47bb-0310-9956-ffa450edef68

19 years agoFix some html smells
pero [Mon, 30 Oct 2006 18:06:52 +0000 (18:06 +0000)]
Fix some html smells

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469211 13f79535-47bb-0310-9956-ffa450edef68

19 years agoFixed null pointer exception on comet socket timeout
fhanik [Mon, 30 Oct 2006 17:47:26 +0000 (17:47 +0000)]
Fixed null pointer exception on comet socket timeout

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469207 13f79535-47bb-0310-9956-ffa450edef68

19 years agoFixed bug where OP interest is different for the first time the key is used, hence...
fhanik [Mon, 30 Oct 2006 16:47:10 +0000 (16:47 +0000)]
Fixed bug where OP interest is different for the first time the key is used, hence a key that never has been read would never timeout.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469189 13f79535-47bb-0310-9956-ffa450edef68

19 years agoRevert fix, suggestion was incorrect and can lead to memory leaks
fhanik [Mon, 30 Oct 2006 16:15:35 +0000 (16:15 +0000)]
Revert fix, suggestion was incorrect and can lead to memory leaks

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469178 13f79535-47bb-0310-9956-ffa450edef68

19 years agoIf the key is null, channel is closed,not sure this is the correct fix, since the...
fhanik [Mon, 30 Oct 2006 15:53:19 +0000 (15:53 +0000)]
If the key is null, channel is closed,not sure this is the correct fix, since the key potentially had an attachment this could lead to NIO mem leak, must track down how this happens

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469168 13f79535-47bb-0310-9956-ffa450edef68

19 years agofix small html smells
pero [Mon, 30 Oct 2006 13:10:02 +0000 (13:10 +0000)]
fix small html smells

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469141 13f79535-47bb-0310-9956-ffa450edef68

19 years agoThere is no org.apache.catalina.Logger or setLogger anymore
funkman [Sun, 29 Oct 2006 19:28:37 +0000 (19:28 +0000)]
There is no org.apache.catalina.Logger or setLogger anymore

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@468957 13f79535-47bb-0310-9956-ffa450edef68

19 years agoOn explicit flush, create an empty (8 bytes)
mturk [Sun, 29 Oct 2006 16:50:56 +0000 (16:50 +0000)]
On explicit flush, create an empty (8 bytes)
SEND_BODY_CHUNK message, that can be used by
web server to flush the packet.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@468937 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Implement the JspIdConsumer feature.
remm [Fri, 27 Oct 2006 00:24:37 +0000 (00:24 +0000)]
- Implement the JspIdConsumer feature.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@468205 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Some deferred expressions handling fixes.
remm [Thu, 26 Oct 2006 23:19:13 +0000 (23:19 +0000)]
- Some deferred expressions handling fixes.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@468186 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCleaned up imports
fhanik [Thu, 26 Oct 2006 22:04:24 +0000 (22:04 +0000)]
Cleaned up imports

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@468166 13f79535-47bb-0310-9956-ffa450edef68

19 years agoOoops, forgot to pass in the double buffered channel to the selector pool for write...
fhanik [Thu, 26 Oct 2006 20:57:28 +0000 (20:57 +0000)]
Ooops, forgot to pass in the double buffered channel to the selector pool for write and read operations

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@468132 13f79535-47bb-0310-9956-ffa450edef68

19 years agoMake sure the socket buffer is not bigger than anticipated header size
fhanik [Thu, 26 Oct 2006 20:37:40 +0000 (20:37 +0000)]
Make sure the socket buffer is not bigger than anticipated header size
Reuse the key attachment objects properly

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@468124 13f79535-47bb-0310-9956-ffa450edef68

19 years agoReverted the removal of the "socket buffer", writing to a ByteBuffer is extremely...
fhanik [Thu, 26 Oct 2006 15:24:24 +0000 (15:24 +0000)]
Reverted the removal of the "socket buffer", writing to a ByteBuffer is extremely slow, so it should only be done in chunks

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@468035 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Also use the parent constructor here.
remm [Thu, 26 Oct 2006 13:24:22 +0000 (13:24 +0000)]
- Also use the parent constructor here.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467995 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Refactor exception reporting using Throwable.getCause, since TC 6 does not have...
remm [Thu, 26 Oct 2006 13:08:58 +0000 (13:08 +0000)]
- Refactor exception reporting using Throwable.getCause, since TC 6 does not have the restrictions for modifications
  to the API implementation classes.
- ServletException.getRootCause now calls getCause.
- Also add some tweaks for robustness to cap recursion.
- Let me know if I did it wrong.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467989 13f79535-47bb-0310-9956-ffa450edef68

19 years agoZero GC objects. everything gets cached.
fhanik [Wed, 25 Oct 2006 23:20:35 +0000 (23:20 +0000)]
Zero GC objects. everything gets cached.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467808 13f79535-47bb-0310-9956-ffa450edef68

19 years agoDocumented socket properties
fhanik [Wed, 25 Oct 2006 22:11:10 +0000 (22:11 +0000)]
Documented socket properties
Added in the ability to cache bytebuffers based on number of channels or number of bytes
Added in nonGC poller events to lower CPU usage during high traffic

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467787 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCode clean up, last pieces to make is a the KeyAttachment object and the Runnable...
fhanik [Wed, 25 Oct 2006 14:31:25 +0000 (14:31 +0000)]
Code clean up, last pieces to make is a the KeyAttachment object and the Runnable used for addEvent to be non GC objects, as these events happen very frequently

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467669 13f79535-47bb-0310-9956-ffa450edef68

19 years agoAllow variable size of AJP message via packetSize=n in <Connector/>.
jfclere [Wed, 25 Oct 2006 10:18:02 +0000 (10:18 +0000)]
Allow variable size of AJP message via packetSize=n in <Connector/>.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467599 13f79535-47bb-0310-9956-ffa450edef68

19 years agodon't cancel, only do that within the selector thread, as this is a synchronized...
fhanik [Tue, 24 Oct 2006 22:32:49 +0000 (22:32 +0000)]
don't cancel, only do that within the selector thread, as this is a synchronized call

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467514 13f79535-47bb-0310-9956-ffa450edef68

19 years agoMake the buffer pool configurable, still need to make it configurable based on size
fhanik [Tue, 24 Oct 2006 22:31:51 +0000 (22:31 +0000)]
Make the buffer pool configurable, still need to make it configurable based on size

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467513 13f79535-47bb-0310-9956-ffa450edef68

19 years agoadjust default properties
fhanik [Tue, 24 Oct 2006 19:01:00 +0000 (19:01 +0000)]
adjust default properties

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467441 13f79535-47bb-0310-9956-ffa450edef68

19 years agoAdd a socket properties class so that we can configure every single socket option...
fhanik [Tue, 24 Oct 2006 14:46:13 +0000 (14:46 +0000)]
Add a socket properties class so that we can configure every single socket option, currently only on NIO.
Remove redundant byte[] buffer in the NIO OutputBuffer, this avoids double copy from byte[] to byte[] to ByteBuffer
Add in the ability to configure the selector pool, as this be dependent on JVM and OS settings

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467349 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Tue, 24 Oct 2006 03:17:11 +0000 (03:17 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467222 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Tue, 24 Oct 2006 03:16:33 +0000 (03:16 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467221 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Tue, 24 Oct 2006 03:15:02 +0000 (03:15 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467219 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Tue, 24 Oct 2006 03:14:41 +0000 (03:14 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467218 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Tue, 24 Oct 2006 03:14:34 +0000 (03:14 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467217 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Tue, 24 Oct 2006 03:14:00 +0000 (03:14 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467216 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Tue, 24 Oct 2006 03:12:55 +0000 (03:12 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467215 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Tue, 24 Oct 2006 03:11:45 +0000 (03:11 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467214 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Tue, 24 Oct 2006 03:11:12 +0000 (03:11 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467213 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Tue, 24 Oct 2006 03:10:47 +0000 (03:10 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467212 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCorrect props.
markt [Mon, 23 Oct 2006 23:47:06 +0000 (23:47 +0000)]
Correct props.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467182 13f79535-47bb-0310-9956-ffa450edef68

19 years agoFix properties.
markt [Mon, 23 Oct 2006 23:12:17 +0000 (23:12 +0000)]
Fix properties.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467173 13f79535-47bb-0310-9956-ffa450edef68

19 years agoremy is right, lets not sacrifice performance to protect against bad servlet code
fhanik [Mon, 23 Oct 2006 18:24:59 +0000 (18:24 +0000)]
remy is right, lets not sacrifice performance to protect against bad servlet code

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467065 13f79535-47bb-0310-9956-ffa450edef68

19 years agoAdded in blocking logic to the NIO connector. This logic ensures that if there is...
fhanik [Mon, 23 Oct 2006 17:39:28 +0000 (17:39 +0000)]
Added in blocking logic to the NIO connector. This logic ensures that if there is a slow client, we will not be wasting CPU cycles doing endless spinning.
Ideas for this implementation can be credited to the Tribes implementation where we have a pool of selectors, so that each sending thread uses its own selector and from Jeanfrancois Arcand's blog about wrapping a NIO channel in a blocking inputstream.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467044 13f79535-47bb-0310-9956-ffa450edef68

19 years agoadded my pee stain :)
fhanik [Mon, 23 Oct 2006 17:20:43 +0000 (17:20 +0000)]
added my pee stain :)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467036 13f79535-47bb-0310-9956-ffa450edef68

19 years agofixed compiler warnings
fhanik [Mon, 23 Oct 2006 17:18:17 +0000 (17:18 +0000)]
fixed compiler warnings

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467033 13f79535-47bb-0310-9956-ffa450edef68

19 years agoAdd a packetSize option to match the option on the native side.
jfclere [Mon, 23 Oct 2006 09:15:22 +0000 (09:15 +0000)]
Add a packetSize option to match the option on the native side.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@466958 13f79535-47bb-0310-9956-ffa450edef68

19 years agoPort fix for 37070 to TC6 along with the changes to remove references to the DefaultC...
markt [Sun, 22 Oct 2006 23:05:45 +0000 (23:05 +0000)]
Port fix for 37070 to TC6 along with the changes to remove references to the DefaultContext.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@466891 13f79535-47bb-0310-9956-ffa450edef68

19 years agoUpdate license header in TC6 trunk to comply with:
markt [Sat, 21 Oct 2006 23:30:39 +0000 (23:30 +0000)]
Update license header in TC6 trunk to comply with:
http://www.apache.org/legal/src-headers.html#headers

It does compile but I need to check the commit message carefully to ensure the script hasn't changed anything it shouldn't have done.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@466609 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Fix logging API.
remm [Fri, 20 Oct 2006 23:05:40 +0000 (23:05 +0000)]
- Fix logging API.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@466299 13f79535-47bb-0310-9956-ffa450edef68

19 years agoPort fix bug 39436. Correct MIME type for SVG.
markt [Thu, 19 Oct 2006 23:16:47 +0000 (23:16 +0000)]
Port fix bug 39436. Correct MIME type for SVG.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465927 13f79535-47bb-0310-9956-ffa450edef68

19 years agoShame on me
fhanik [Thu, 19 Oct 2006 20:30:41 +0000 (20:30 +0000)]
Shame on me

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465767 13f79535-47bb-0310-9956-ffa450edef68

19 years agoSSLEngine is an attribute of the APR lifecycle listener to initialize the native...
fhanik [Thu, 19 Oct 2006 16:45:45 +0000 (16:45 +0000)]
SSLEngine is an attribute of the APR lifecycle listener to initialize the native SSL layer once per VM.
All HTTP connectors share an attribute called SSLEnabled with true/false values to turn on SSL at the socket level.
The scheme and secure attributes simply override the request.getScheme and request.isSecure values.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465675 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- I did not fix activity check correctly last time.
remm [Thu, 19 Oct 2006 10:26:29 +0000 (10:26 +0000)]
- I did not fix activity check correctly last time.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465555 13f79535-47bb-0310-9956-ffa450edef68

19 years agoImplement non blocking read on HTTP requests.
fhanik [Wed, 18 Oct 2006 23:24:52 +0000 (23:24 +0000)]
Implement non blocking read on HTTP requests.

A common scalability problem when it comes to HTTP is the fact that there are slow clients, that will block a server resources while sending a HTTP request. Especially when you have larger request headers.

On FreeBSD the kernel has a built in http filter to not wake up the application socket handle until the entire request has been received, however on other platforms this is not available.

With the Tomcat connectors, there is an obvious problem when it comes to slow clients, if the client sends up a partial request, Tomcat will block the thread until the client has finished sending the request. For example, if the client has 10 headers it sends up the first 5 headers, then the next 5 in a sequential batch, the tomcat thread is locked in a blocking read
I've tried to fix that problem by making the NIO connector be non blocking. The only time the NIO connector will block now is when the servlet asks for data, usually the request body, as we don't have a way to suspend a thread, like continuations.
Once we have continuations(that can truly remember thread stack data), we can have a truly non blocking server, but we are not there yet.

I believe this code could be easily ported to APR connector with very little effort.
When you review this code, please note that I have not attemtped to rewrite the header parse logic, I might do that in a later stage as this got a little messy, but I wanted the proof of concept done first and reuse as much code as possible.

Please feel free to review and even flame me if needed, at least that means this got some attention :)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465417 13f79535-47bb-0310-9956-ffa450edef68

19 years agoadded new changes
fhanik [Wed, 18 Oct 2006 17:30:57 +0000 (17:30 +0000)]
added new changes

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465308 13f79535-47bb-0310-9956-ffa450edef68

19 years agoImplemented SSLEngine attribute on the Java HTTP connectors.
fhanik [Wed, 18 Oct 2006 17:10:44 +0000 (17:10 +0000)]
Implemented SSLEngine attribute on the Java HTTP connectors.
This allows one to specify secure=true and scheme=https to prevent tomcat from redirecting
when using a SSL accelerator in front of tomcat

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465303 13f79535-47bb-0310-9956-ffa450edef68

19 years agoAdd srclib build repository.
mturk [Wed, 18 Oct 2006 11:30:36 +0000 (11:30 +0000)]
Add srclib build repository.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465217 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCopy the tomcat-connector/jni/native to the native/connector.
mturk [Wed, 18 Oct 2006 11:09:50 +0000 (11:09 +0000)]
Copy the tomcat-connector/jni/native to the native/connector.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465208 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Fix NPE on isValid for an expired session when activity check is enabled.
remm [Wed, 18 Oct 2006 10:13:28 +0000 (10:13 +0000)]
- Fix NPE on isValid for an expired session when activity check is enabled.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465195 13f79535-47bb-0310-9956-ffa450edef68

19 years agoPort fix 40723. Correct javadoc for JDBCAccessLogValve.
markt [Wed, 18 Oct 2006 02:37:58 +0000 (02:37 +0000)]
Port fix 40723. Correct javadoc for JDBCAccessLogValve.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465129 13f79535-47bb-0310-9956-ffa450edef68

19 years agoPort fix bug 40771. Correct doRead method so Filters and Valves can read POST data...
markt [Wed, 18 Oct 2006 02:26:48 +0000 (02:26 +0000)]
Port fix bug 40771. Correct doRead method so Filters and Valves can read POST data. patch provided by Michael Dufel.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465126 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Also copy the policy file.
remm [Tue, 17 Oct 2006 20:50:56 +0000 (20:50 +0000)]
- Also copy the policy file.
- server.xml tweaks.
- Remove the minimal server.xml, which isn't that helpful anymore.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465044 13f79535-47bb-0310-9956-ffa450edef68

19 years agoFix NPE on session state transfer
fhanik [Tue, 17 Oct 2006 20:36:13 +0000 (20:36 +0000)]
Fix NPE on session state transfer

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465031 13f79535-47bb-0310-9956-ffa450edef68

19 years agoCleaned up server.xml, added in documentation references so that a user can navigate...
fhanik [Tue, 17 Oct 2006 16:49:59 +0000 (16:49 +0000)]
Cleaned up server.xml, added in documentation references so that a user can navigate from an element in server.xml to the correct location in the online documentation.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464958 13f79535-47bb-0310-9956-ffa450edef68

19 years agoFixed startup exception
fhanik [Tue, 17 Oct 2006 14:05:50 +0000 (14:05 +0000)]
Fixed startup exception

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464928 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Update to the new packages.
remm [Tue, 17 Oct 2006 10:22:35 +0000 (10:22 +0000)]
- Update to the new packages.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464892 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- At the moment, I prefer version 1.1.3.
remm [Tue, 17 Oct 2006 00:52:16 +0000 (00:52 +0000)]
- At the moment, I prefer version 1.1.3.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464761 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Small tweaks.
remm [Tue, 17 Oct 2006 00:30:04 +0000 (00:30 +0000)]
- Small tweaks.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464758 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Add a !null as with the other servlets for the debug flag.
remm [Tue, 17 Oct 2006 00:27:49 +0000 (00:27 +0000)]
- Add a !null as with the other servlets for the debug flag.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464757 13f79535-47bb-0310-9956-ffa450edef68

19 years agoMake server.xml nice and pretty without including a giant blob about clustering
fhanik [Mon, 16 Oct 2006 22:46:39 +0000 (22:46 +0000)]
Make server.xml nice and pretty without including a giant blob about clustering

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464705 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Restructure a little.
remm [Mon, 16 Oct 2006 22:32:13 +0000 (22:32 +0000)]
- Restructure a little.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464700 13f79535-47bb-0310-9956-ffa450edef68

19 years agocorrected defaults
fhanik [Mon, 16 Oct 2006 22:24:41 +0000 (22:24 +0000)]
corrected defaults

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464699 13f79535-47bb-0310-9956-ffa450edef68

19 years agomore updates, restructure a little bit
fhanik [Mon, 16 Oct 2006 19:56:30 +0000 (19:56 +0000)]
more updates, restructure a little bit

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464645 13f79535-47bb-0310-9956-ffa450edef68

19 years agooops, wrong manager as default
fhanik [Mon, 16 Oct 2006 19:39:48 +0000 (19:39 +0000)]
oops, wrong manager as default

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464637 13f79535-47bb-0310-9956-ffa450edef68

19 years agocorrected default value
fhanik [Mon, 16 Oct 2006 19:38:54 +0000 (19:38 +0000)]
corrected default value

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464636 13f79535-47bb-0310-9956-ffa450edef68

19 years agomore cleanup, need to add correct documentation
fhanik [Mon, 16 Oct 2006 19:35:42 +0000 (19:35 +0000)]
more cleanup, need to add correct documentation

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464635 13f79535-47bb-0310-9956-ffa450edef68

19 years agoFixed manager registration and how manager names are handled. Make sure the manager...
fhanik [Mon, 16 Oct 2006 19:23:34 +0000 (19:23 +0000)]
Fixed manager registration and how manager names are handled. Make sure the manager has a reference to its container before its registered

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464632 13f79535-47bb-0310-9956-ffa450edef68

19 years agoremoved 5.5 from 6.0 changelog.xml
fhanik [Mon, 16 Oct 2006 18:11:19 +0000 (18:11 +0000)]
removed 5.5 from 6.0 changelog.xml

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464601 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Thanks for adding in the other important features to the list.
remm [Mon, 16 Oct 2006 16:37:32 +0000 (16:37 +0000)]
- Thanks for adding in the other important features to the list.
- Do we remove the 5.5 changelog or not ?

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464554 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Code cleanup.
remm [Mon, 16 Oct 2006 16:30:46 +0000 (16:30 +0000)]
- Code cleanup.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464549 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Fix deployer packaging (the tasks defs were not included).
remm [Mon, 16 Oct 2006 16:17:28 +0000 (16:17 +0000)]
- Fix deployer packaging (the tasks defs were not included).

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464547 13f79535-47bb-0310-9956-ffa450edef68

19 years agoMade a larger autoBind property
fhanik [Mon, 16 Oct 2006 15:34:23 +0000 (15:34 +0000)]
Made a larger autoBind property

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464520 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Add a draft release plan. Things should be expanded as needed, I probably forgot...
remm [Mon, 16 Oct 2006 13:57:32 +0000 (13:57 +0000)]
- Add a draft release plan. Things should be expanded as needed, I probably forgot some things.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464497 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Tweaks.
remm [Mon, 16 Oct 2006 13:45:11 +0000 (13:45 +0000)]
- Tweaks.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464491 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Various docs fixes.
remm [Mon, 16 Oct 2006 13:27:30 +0000 (13:27 +0000)]
- Various docs fixes.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464483 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Add a privileged filter list (I had forgotten about the SSI filter ...).
remm [Mon, 16 Oct 2006 13:06:09 +0000 (13:06 +0000)]
- Add a privileged filter list (I had forgotten about the SSI filter ...).

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464474 13f79535-47bb-0310-9956-ffa450edef68

19 years ago- Port patch.
remm [Fri, 13 Oct 2006 22:52:19 +0000 (22:52 +0000)]
- Port patch.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@463861 13f79535-47bb-0310-9956-ffa450edef68

19 years agoListener documentation
fhanik [Fri, 13 Oct 2006 19:23:54 +0000 (19:23 +0000)]
Listener documentation

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@463790 13f79535-47bb-0310-9956-ffa450edef68

19 years agocomplete valve documentation
fhanik [Fri, 13 Oct 2006 19:07:44 +0000 (19:07 +0000)]
complete valve documentation

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@463780 13f79535-47bb-0310-9956-ffa450edef68