fhanik [Wed, 22 Aug 2007 20:18:35 +0000 (20:18 +0000)]
Log deserialization errors as error
log channellistener errors as warnings
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568741
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Wed, 22 Aug 2007 17:07:01 +0000 (17:07 +0000)]
Added license header
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568702
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Wed, 22 Aug 2007 14:43:08 +0000 (14:43 +0000)]
Added example on how you can name nodes with existing system
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568631
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Wed, 22 Aug 2007 13:29:21 +0000 (13:29 +0000)]
remove non needed methods, somehow they cause an itch, so lets get rid of the itch
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568605
13f79535-47bb-0310-9956-
ffa450edef68
funkman [Wed, 22 Aug 2007 01:42:35 +0000 (01:42 +0000)]
42466
globalresources.xml has a wrong link
patch from Takayoshi Kimura takayoshi at gmails doooot com
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568367
13f79535-47bb-0310-9956-
ffa450edef68
funkman [Wed, 22 Aug 2007 01:25:09 +0000 (01:25 +0000)]
43155
remove commons-logging-api.jar since it ain't there
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568357
13f79535-47bb-0310-9956-
ffa450edef68
funkman [Wed, 22 Aug 2007 01:20:17 +0000 (01:20 +0000)]
42569
Small grammar correction on default Tomcat index.html page
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568355
13f79535-47bb-0310-9956-
ffa450edef68
funkman [Wed, 22 Aug 2007 01:02:01 +0000 (01:02 +0000)]
BZ - 20068
Patch by Wendy Smoak wsmoak at apache org
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568346
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 21 Aug 2007 23:52:25 +0000 (23:52 +0000)]
Update changelog
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568333
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 21 Aug 2007 22:15:40 +0000 (22:15 +0000)]
Fix the B2C converter.
Sometimes data comes in incomplete chunks, and we have to check to see if we have available data, otherwise, when we return -1, the underlying InputStreamReader actually returns 1, and we get garbage in the output data.
I will discuss this on the dev list, since it affects all tomcat versions, at that time I will also provide a test case showing what can happen. Please comment on this fix, if there is something alarming
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568307
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 21 Aug 2007 21:14:39 +0000 (21:14 +0000)]
Documented the virtual webapp loader
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568290
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 21 Aug 2007 19:00:23 +0000 (19:00 +0000)]
Extend the virtual loader a bit further, allowing developers to specify a class-path using the MANIFEST.MF file in the WAR file. I can't see that it would break the spec, and Websphere does it.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568233
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Mon, 20 Aug 2007 14:25:14 +0000 (14:25 +0000)]
improved upon the existing virtualwebapploader,
new feature: can configure the path separator
new feature: can create a local repository for runtime
new feature: jar files are added as addJar to prevent locking of files
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@567714
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 17 Aug 2007 22:52:56 +0000 (22:52 +0000)]
required a little bit more touchup
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@567165
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 17 Aug 2007 22:47:38 +0000 (22:47 +0000)]
Fix NPE if no classpath is set
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@567163
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 17 Aug 2007 21:49:50 +0000 (21:49 +0000)]
Added in the ability to name classloaders in Tomcat
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@567156
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 17 Aug 2007 19:34:03 +0000 (19:34 +0000)]
Enable configuration of all properties, including the recovery turn/on/off
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@567115
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 17 Aug 2007 19:12:46 +0000 (19:12 +0000)]
don't reset the membership during a recovery, otherwise we lose all info on the surrounding members
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@567113
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 17 Aug 2007 18:33:08 +0000 (18:33 +0000)]
Added in a recovery service to the membership layer. if the network card gets disabled or something similar happens, it tries to recover the service
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@567104
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Wed, 15 Aug 2007 14:06:45 +0000 (14:06 +0000)]
Set the interval in a distributed env, patch by Takayuki Kaneko
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@566170
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 14 Aug 2007 23:03:45 +0000 (23:03 +0000)]
filters are not properly recycled if the request was a Comet
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@565963
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 14 Aug 2007 14:02:41 +0000 (14:02 +0000)]
Additional methods for JMX info
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@565763
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Mon, 13 Aug 2007 17:04:52 +0000 (17:04 +0000)]
Added in backup manager
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@565420
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Mon, 13 Aug 2007 13:54:30 +0000 (13:54 +0000)]
Fix NPE in the map, add accessors to stats information
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@565352
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 10 Aug 2007 21:07:46 +0000 (21:07 +0000)]
Fix the comet recycle sync issue, will think of another solution some other time, for now this solves the problem
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564768
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 10 Aug 2007 19:43:46 +0000 (19:43 +0000)]
oops, no one was supposed to know that I still debug with System.out
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564729
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 10 Aug 2007 19:39:17 +0000 (19:39 +0000)]
fix state synchronization problems
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564727
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 23:44:52 +0000 (23:44 +0000)]
Make sure when a session becomes primary that its timeout value is reset, otherwise we can have unexpected session expirations
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564426
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 23:24:20 +0000 (23:24 +0000)]
must set the primary in all locations
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564420
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 19:54:51 +0000 (19:54 +0000)]
more fixes, same bz
http://issues.apache.org/bugzilla/show_bug.cgi?id=43053
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564360
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 19:52:08 +0000 (19:52 +0000)]
make the backup node become the primary so that we can still expire sessions
http://issues.apache.org/bugzilla/show_bug.cgi?id=43053
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564358
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 19:45:53 +0000 (19:45 +0000)]
If there is no primary node, then let the expiration time apply to the backup node
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564356
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 19:40:31 +0000 (19:40 +0000)]
remove proxies without primary or backups, only backup expiration handling left
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564354
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 18:47:22 +0000 (18:47 +0000)]
if primary member disappears, remove the entry in the hashmap
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564337
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 18:43:12 +0000 (18:43 +0000)]
Publish primary node information as well
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564335
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 02:06:32 +0000 (02:06 +0000)]
remove throwing of exceptions, handle everything inside the JMX helper
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564074
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 01:58:50 +0000 (01:58 +0000)]
remove not used fields
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564071
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 9 Aug 2007 01:54:34 +0000 (01:54 +0000)]
Setup framework for cluster JMX operations
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564069
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Wed, 8 Aug 2007 16:00:07 +0000 (16:00 +0000)]
forward port from 6.0
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@563925
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 7 Aug 2007 15:48:08 +0000 (15:48 +0000)]
Don't send out if there are no members
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@563534
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Mon, 6 Aug 2007 23:49:46 +0000 (23:49 +0000)]
forward port from markt bug fixes in 6.0.x branch
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@563344
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Mon, 6 Aug 2007 23:19:17 +0000 (23:19 +0000)]
Improve upon poller timeout handling, to not waste cycles running the timeout setting too often
same fix as 6.0.x
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@563330
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 3 Aug 2007 21:40:20 +0000 (21:40 +0000)]
Forward port from 6.0
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@562594
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 31 Jul 2007 13:38:23 +0000 (13:38 +0000)]
forward port from 6.0
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@561328
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 27 Jul 2007 23:38:19 +0000 (23:38 +0000)]
Added missing attribute to the docs
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@560422
13f79535-47bb-0310-9956-
ffa450edef68
rjung [Sun, 22 Jul 2007 18:29:59 +0000 (18:29 +0000)]
BZ 42951: Port r454193 (BZ 36976) from TC 5.5.x:
Don't use CATALINA_OPTS when stopping Tomcat.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@558522
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 20 Jul 2007 22:41:17 +0000 (22:41 +0000)]
missing import
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@558184
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 20 Jul 2007 22:36:07 +0000 (22:36 +0000)]
upsync from 6.0
http://svn.apache.org/viewvc?view=rev&rev=557454
http://svn.apache.org/viewvc?view=rev&rev=557467
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@558182
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 20 Jul 2007 22:31:38 +0000 (22:31 +0000)]
up sync from 6.0
http://svn.apache.org/viewvc?view=rev&rev=556453
http://svn.apache.org/viewvc?view=rev&rev=556489
http://svn.apache.org/viewvc?view=rev&rev=556767
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@558181
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 20 Jul 2007 22:29:12 +0000 (22:29 +0000)]
up sync from 6.0
http://svn.apache.org/viewvc?view=rev&rev=555310
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@558179
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 20 Jul 2007 22:28:05 +0000 (22:28 +0000)]
up sync from 6.0
http://svn.apache.org/viewvc?view=rev&rev=554814
http://svn.apache.org/viewvc?view=rev&rev=555304
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@558178
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 20 Jul 2007 22:24:26 +0000 (22:24 +0000)]
sync up from 6.0
http://svn.apache.org/viewvc?view=rev&rev=553716
http://svn.apache.org/viewvc?view=rev&rev=554109
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@558177
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 20 Jul 2007 22:18:27 +0000 (22:18 +0000)]
syncing up from 6.0
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@558176
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 20 Jul 2007 20:44:08 +0000 (20:44 +0000)]
synch from 6.0
http://svn.apache.org/viewvc?view=rev&rev=543307
http://svn.apache.org/viewvc?view=rev&rev=553410
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@558127
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 20 Jul 2007 00:21:23 +0000 (00:21 +0000)]
forward port from 6.0
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@557822
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 19 Jul 2007 16:28:04 +0000 (16:28 +0000)]
forward port from 6.0
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@557679
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 19 Jul 2007 14:21:35 +0000 (14:21 +0000)]
BZ 42937, forward port from 6.0
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@557638
13f79535-47bb-0310-9956-
ffa450edef68
rjung [Sun, 15 Jul 2007 17:03:25 +0000 (17:03 +0000)]
Correct j.u.l log levels in JULI docs.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@556431
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Mon, 9 Jul 2007 20:52:52 +0000 (20:52 +0000)]
Fix BZ 42840
http://issues.apache.org/bugzilla/show_bug.cgi?id=42840
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@554762
13f79535-47bb-0310-9956-
ffa450edef68
rjung [Mon, 9 Jul 2007 09:49:18 +0000 (09:49 +0000)]
Separate sequence increment from getter in ThreadPool to avoid
misleading increments during monitoring via JMX.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@554588
13f79535-47bb-0310-9956-
ffa450edef68
rjung [Mon, 9 Jul 2007 09:05:54 +0000 (09:05 +0000)]
Remove invalid attribute "encoding" of MBean MemoryUserDatabase,
which lead to errors in the manager webapp JMXProxy output.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@554577
13f79535-47bb-0310-9956-
ffa450edef68
rjung [Mon, 9 Jul 2007 08:59:33 +0000 (08:59 +0000)]
Don't write error on System.out, use log() instead.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@554571
13f79535-47bb-0310-9956-
ffa450edef68
rjung [Mon, 9 Jul 2007 08:45:22 +0000 (08:45 +0000)]
BZ 39813: Correct handling of new line characters in JMX attributes.
Patch provided by R Bramley. Ported from tc5.5.x r415029.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@554563
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 3 Jul 2007 13:31:05 +0000 (13:31 +0000)]
BZ 42803
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@552838
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Mon, 2 Jul 2007 18:46:20 +0000 (18:46 +0000)]
Force closure of connections upon a server shutdown
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@552560
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 29 Jun 2007 13:07:27 +0000 (13:07 +0000)]
Bugzilla 42753
Same fix as 6.0 branch
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@551881
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 28 Jun 2007 21:21:37 +0000 (21:21 +0000)]
try setting equalness to false, see if we can do better
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@551702
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 28 Jun 2007 18:41:00 +0000 (18:41 +0000)]
Same fix as for 6.0 branch, invoke error if the read did not empty the buffer
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@551656
13f79535-47bb-0310-9956-
ffa450edef68
billbarker [Sun, 24 Jun 2007 23:27:57 +0000 (23:27 +0000)]
porting AJP large-file support from 5.5
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@550299
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 15 Jun 2007 21:35:57 +0000 (21:35 +0000)]
fix formatting for latest added example
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@547794
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 15 Jun 2007 21:31:45 +0000 (21:31 +0000)]
Added in AJAX with delayed response example
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@547792
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 15 Jun 2007 21:27:12 +0000 (21:27 +0000)]
minor correction
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@547788
13f79535-47bb-0310-9956-
ffa450edef68
billbarker [Thu, 14 Jun 2007 02:55:26 +0000 (02:55 +0000)]
Porting large-file support for the AJP Connectors from 5.5
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@547096
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Wed, 13 Jun 2007 22:51:56 +0000 (22:51 +0000)]
added simple example code snippets to comet usage
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@547055
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Wed, 13 Jun 2007 18:51:38 +0000 (18:51 +0000)]
simplify API a bit based on feedback
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@546999
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Wed, 13 Jun 2007 17:05:14 +0000 (17:05 +0000)]
fix for BZ 42650
http://issues.apache.org/bugzilla/show_bug.cgi?id=42650
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@546958
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Wed, 13 Jun 2007 16:55:27 +0000 (16:55 +0000)]
Fix for BZ 42648
http://issues.apache.org/bugzilla/show_bug.cgi?id=42648
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@546952
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Mon, 11 Jun 2007 12:11:20 +0000 (12:11 +0000)]
oops, didn't mean to relax the close method
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@546117
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Mon, 11 Jun 2007 11:53:47 +0000 (11:53 +0000)]
Added some doco
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@546108
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 8 Jun 2007 11:27:42 +0000 (11:27 +0000)]
minor optimization to the blocking selector
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@545479
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 8 Jun 2007 10:52:49 +0000 (10:52 +0000)]
Cancel the blocking key only, no need to cancel anything else here
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@545474
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 8 Jun 2007 10:22:50 +0000 (10:22 +0000)]
added debug statement instead of swallowing
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@545470
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 8 Jun 2007 10:18:21 +0000 (10:18 +0000)]
straightened out buffer handling
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@545469
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 7 Jun 2007 13:48:07 +0000 (13:48 +0000)]
notes, still need some work on the write to socket
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@545180
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 7 Jun 2007 12:15:22 +0000 (12:15 +0000)]
Simplified the API, no need for the IOExceptions
Updated documentation, added in some notes about life cycle, more source code examples to come
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@545151
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 1 Jun 2007 18:55:10 +0000 (18:55 +0000)]
added cleanup code
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543576
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 1 Jun 2007 17:20:06 +0000 (17:20 +0000)]
Thread safe handling of dealing with async writes and non blocking writes, needed to separate it into a poller for incoming events and one poller for outgoing data
Not thread safe for multiple async servlet threads writing at the same time, up to the comet developer to set it straight
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543538
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Fri, 1 Jun 2007 07:40:37 +0000 (07:40 +0000)]
Forward port of BZ 42509 and BZ 42515
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543414
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 31 May 2007 19:55:12 +0000 (19:55 +0000)]
remove not used, at least until I've figured out the concurrency issue around the read/write
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543237
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 31 May 2007 19:53:25 +0000 (19:53 +0000)]
restore original interest ops
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543235
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 31 May 2007 19:44:27 +0000 (19:44 +0000)]
consolidate the usage of the NioChannel buffers
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543228
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 31 May 2007 19:34:05 +0000 (19:34 +0000)]
rearrange
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543227
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 31 May 2007 19:32:33 +0000 (19:32 +0000)]
1. Timeouts are now per connection, not using fixed timeouts anywhere. by default the connection gets the timeout defined in server.xml
2. Implemented all Comet operations, including the ability to have none
3. Implemented CometEvent.isReadable and isWriteable
isAvailable - means data is available to the servlet
isReadable - means there is data from the socket also checks the socket, by doing a read, in a non blocking fashion to verify this to be true
isWriteable - the last write attempted on this socket was 0, hence we are probably blocking
4. simplified CometEvent.register/unregister, they are now just one call and no syncs
5. After each event, the connection is registered with the same operations it had before
6. CoyoteAdapter respects when the servlet doesn't want to be notified of the READ event, hence it doesn't invoke it automatically
7. Let me know if MutableBoolean and MutableInteger should be elsewhere(in terms of package), they are used since ActionHook doesn't have a return value and also valuable in the output buffers since SSL writing is two steps, one through the engine and the other to the socket
I'm pretty happy with how isReadable,isWriteable works, they are completly non blocking and very accurate
True non blocking in the buffers and filters seems like a major surgery, still holding off on that.
Need to fix the NioBlockingSelector as it is almost impossible to make the poller interest declaration thread safe
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543226
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 31 May 2007 11:51:34 +0000 (11:51 +0000)]
return the amount of bytes written
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543117
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 31 May 2007 10:34:27 +0000 (10:34 +0000)]
add brackets to clarify what were trying to do
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543107
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 31 May 2007 09:09:04 +0000 (09:09 +0000)]
implement CALLBACK and WRITE events
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543091
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Thu, 31 May 2007 08:48:01 +0000 (08:48 +0000)]
simplify register and poller interest for comet, all can be done in one call
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543086
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Wed, 30 May 2007 08:44:40 +0000 (08:44 +0000)]
no need to sync here, the poller will dispatch for handling anyway
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@542779
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 29 May 2007 22:23:36 +0000 (22:23 +0000)]
setup default operation
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@542678
13f79535-47bb-0310-9956-
ffa450edef68
fhanik [Tue, 29 May 2007 22:13:26 +0000 (22:13 +0000)]
When using a comet connection, register the requested operations instead of the default read
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@542674
13f79535-47bb-0310-9956-
ffa450edef68