Commit Graph

1813 Commits

Author SHA1 Message Date
Greg Wilkins 7bb3a7be28 409556 Resource files not closed
Made Resource a closeable so that it is easier to close in a try(){} block. Deprecated release() and made it close() instead.

FileResource no longer extends URLResource as it can more efficiently implement all the methods with pure File operations and have no
connections or streams that need to be release/closed
2013-06-03 18:21:11 +10:00
Greg Wilkins 0e11c82307 fixed merge 2013-05-31 18:07:01 +10:00
Greg Wilkins 842309e656 Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	jetty-server/src/main/java/org/eclipse/jetty/server/Response.java
	jetty-server/src/test/java/org/eclipse/jetty/server/ResponseTest.java
	jetty-servlets/src/test/java/org/eclipse/jetty/servlets/gzip/GzipTester.java
2013-05-31 18:06:34 +10:00
Greg Wilkins 3849c893e1 Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-05-31 11:07:40 +10:00
Greg Wilkins 3094f93ed9 408642 setContentType from addHeader 2013-05-31 11:06:33 +10:00
Greg Wilkins d8f2350f50 398467 Servlet 3.1 Non Blocking IO
Removed double dispatch due to HttpPArser content handler returning true for deferred dispatch.
2013-05-30 16:15:04 +10:00
Greg Wilkins 76457d4807 409441 jetty.xml threadpool arg injection
Do not use arg injection for ThreadPool
2013-05-30 11:59:36 +10:00
Jan Bartel af02e9b16d Update to version to 8.1.12-SNAPSHOT after last release 2013-05-30 10:52:39 +10:00
Greg Wilkins c961d65697 398467 Servlet 3.1 Non Blocking IO
completed removal of HttpOutput.closeIfAllContentWritten
2013-05-30 09:09:47 +10:00
Greg Wilkins 6f0195e0de 398467 Servlet 3.1 Non Blocking IO
Fixed handling of empty writes
fixed double close sendContent
2013-05-28 22:46:16 +10:00
Jan Bartel db2615ab29 408723 Jetty Maven plugin reload ignores web.xml listeners 2013-05-23 17:28:12 +10:00
Greg Wilkins 79486b5949 408720 NPE in AsyncContext.getRequest()
Do not null the _event during the complete method
2013-05-23 09:48:06 +10:00
Jesse McConnell 725dc261c8 Merge branch 'release-8' into jetty-8 2013-05-22 10:44:14 -05:00
Jesse McConnell a1a6f0e5f2 Merge branch 'release-7' into jetty-7 2013-05-22 10:39:24 -05:00
Jesse McConnell 74a4077dad Add package-info.java files to all jetty packages. 2013-05-21 15:09:49 -05:00
Jesse McConnell 742f6a063d [Bug 408600] set correct jetty.url in all pom files 2013-05-21 13:16:39 -05:00
Jesse McConnell bdbd92dbc9 [Bug 408600] set correct jetty.url in all pom files 2013-05-21 13:10:07 -05:00
Jesse McConnell 0858e69cb1 [maven-release-plugin] prepare for next development iteration 2013-05-20 07:19:34 -05:00
Jesse McConnell d469b77663 [maven-release-plugin] prepare release jetty-8.1.11.v20130520 2013-05-20 07:19:25 -05:00
Jesse McConnell 497c2f7819 [maven-release-plugin] prepare for next development iteration 2013-05-20 07:15:00 -05:00
Jesse McConnell b32d0260c9 [maven-release-plugin] prepare release jetty-7.6.11.v20130520 2013-05-20 07:14:52 -05:00
Jan Bartel b6d1158c22 408167 JDBCSessionManager don't mark session as dirty if same attribute value set 2013-05-17 17:18:54 +10:00
Greg Wilkins d703319c87 398467 Servlet 3.1 Non Blocking IO
simplified write
2013-05-17 16:35:58 +10:00
Greg Wilkins 8a6ab9ab9d 408117 isAsyncStarted is false on redispatch 2013-05-17 11:41:22 +10:00
Greg Wilkins b22d280e2a 398467 Servlet 3.1 Non Blocking IO
Cleaned up exceptions and HttpOutput.write
2013-05-16 19:00:00 +10:00
Jan Bartel 67a1b2a18f Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	jetty-server/src/main/java/org/eclipse/jetty/server/session/HashSessionManager.java
	jetty-server/src/main/java/org/eclipse/jetty/server/session/HashedSession.java
2013-05-16 16:06:41 +10:00
Jan Bartel 427c59e2f2 Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-05-16 15:47:22 +10:00
Jan Bartel 51c1017b3d 408077 HashSessionManager leaves file handles open after being stopped 2013-05-16 15:39:50 +10:00
Greg Wilkins 01768562ca 398467 Servlet 3.1 Non Blocking IO
fixed ResourceHandler
2013-05-16 14:27:32 +10:00
Jan Bartel 76b767fc22 Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	jetty-server/src/main/java/org/eclipse/jetty/server/session/JDBCSessionIdManager.java
2013-05-16 12:33:08 +10:00
Jan Bartel 4a562f8d89 Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-05-16 12:25:19 +10:00
Jan Bartel 8a1ea2f69c 407976 JDBCSessionIdManager potentially leaves server in bad state after startup 2013-05-16 12:18:04 +10:00
Greg Wilkins 76d4859eda 398467 Servlet 3.1 Non Blocking IO
Improved sendContent API and javadoc. Added FastFileServer example
2013-05-16 09:26:37 +10:00
Greg Wilkins c03cb95e8a removed debug prints 2013-05-14 17:57:52 +10:00
Greg Wilkins 4dd80e9128 398467 Servlet 3.1 Non Blocking IO
More refinements to avoid duplicate code and optimise common paths
2013-05-14 17:52:46 +10:00
Greg Wilkins 0116f45ff0 398467 Servlet 3.1 Non Blocking IO
Asynchronous default servlet
2013-05-14 10:09:09 +10:00
Greg Wilkins 9f3e4dc5b7 398467 Servlet 3.1 Non Blocking IO
Added callbacks to HttpOutput
2013-05-14 10:09:09 +10:00
Greg Wilkins fe582e544a 398467 Non Blocking IO
Working towards 3.1 by exposing more of the underlying async IO operations.
added async support to write in HttpChannel
2013-05-10 20:11:19 +10:00
Greg Wilkins ccc7a71c74 398467 Non Blocking IO
Working towards 3.1 by exposing more of the underlying async IO operations.
2013-05-10 19:45:32 +10:00
Greg Wilkins 09476ac235 406923 Accept CRLF or LF but not CR as line termination
Better handling of FF character
2013-05-09 15:01:50 +10:00
Jesse McConnell 3d600ed95e [maven-release-plugin] prepare for next development iteration 2013-05-06 18:13:04 -05:00
Jesse McConnell d832f3dc7e [maven-release-plugin] prepare release jetty-9.0.3.v20130506 2013-05-06 18:12:55 -05:00
Jan Bartel e7564c9dcd Merge remote-tracking branch 'origin/jetty-8' 2013-05-06 13:30:53 +10:00
Jan Bartel 488c1755e0 Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-05-06 13:22:26 +10:00
Greg Wilkins 9ec10734e5 fixed warn output 2013-05-06 13:04:39 +10:00
Jan Bartel f10a1d709b 407173 java.lang.IllegalStateException: null when using JDBCSessionManager 2013-05-06 12:24:53 +10:00
Greg Wilkins 11dccd7677 reduced test output 2013-05-06 11:43:37 +10:00
Greg Wilkins 98d260dd92 407075 Do not dispatch from complete
Call HttpChannel.handle directly from thread calling complete
2013-05-06 11:14:53 +10:00
Greg Wilkins 215f3f1f56 406617 Spin in Request.recycle
Improved output in warning
2013-05-06 09:40:49 +10:00
Simone Bordet fe1b71f4a0 Reduced build logging for Travis. 2013-05-04 00:26:29 +02:00
Simone Bordet c4ad43d0cd Removed ugly code that does not seem to be any useful. 2013-05-03 19:50:13 +02:00
Greg Wilkins cb952931d5 connection events in debughandler 2013-05-03 18:54:50 +10:00
Greg Wilkins d351e0790a 406617 Spin in Request.recycle
Numerous code cleanups with the handling of early closes of requests, specially when the response has already been sent.
2013-05-03 15:15:03 +10:00
Simone Bordet 827a7f48b8 Made the test more robust. 2013-05-02 18:50:24 +02:00
Greg Wilkins 0b15aa5a76 406617 Spin in Request.recylce
Some more cleanups of the loops
2013-05-02 20:02:29 +10:00
Greg Wilkins 22b0098be7 406617 Spin in Request.recylce
removed loop from read, so only a single attempt a blocking for content.
2013-05-02 12:57:48 +10:00
Jan Bartel b99a04c674 406962 Improve attribute names in Request 2013-05-01 17:53:33 +10:00
Greg Wilkins 7590ad6795 406390 406617 removed tiny race from handling of suspend and complete 2013-05-01 09:14:26 +10:00
Greg Wilkins e26d8e67e5 406861 Fixed IPv6 redirect 2013-04-30 18:49:29 +10:00
Greg Wilkins 4e62b953e1 406861 Fixed IPv6 redirect 2013-04-30 16:00:17 +10:00
Greg Wilkins e781393258 406768 Improved handling of static content resources 2013-04-30 15:52:11 +10:00
Greg Wilkins 68b9115e07 406768 Close inputstream and channels for 0 length resources 2013-04-30 14:24:05 +10:00
Greg Wilkins 7ce709519a 405327 Merge branch jetty-9-modularstart 2013-04-29 15:44:56 +10:00
Greg Wilkins e5967344a9 406202 re-enabled connector statistics 2013-04-29 15:11:45 +10:00
Greg Wilkins 89da7623dc Merge remote-tracking branch 'origin/master' into jetty-9-modularstart 2013-04-29 14:03:16 +10:00
Greg Wilkins 7955548d10 406390 Close if at END and content remaining 2013-04-29 14:01:11 +10:00
Greg Wilkins cbb76283c9 406390 Close if at END and content remaining 2013-04-29 10:40:05 +10:00
Greg Wilkins a5c701c237 406390 Close if at END and content remaining 2013-04-29 09:55:34 +10:00
Greg Wilkins 9558d7e815 modular start.ini files and --download start option 2013-04-26 13:53:28 +10:00
Greg Wilkins 0f7d6547fe 405530 Wrap AsyncContext to throw ISE after complete 2013-04-23 14:13:58 +10:00
Greg Wilkins 03fd068ebc Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java
2013-04-22 14:20:03 +10:00
Greg Wilkins db48bce49d Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-04-22 14:15:51 +10:00
Greg Wilkins 3c498f0a2c 405281 allow filemappedbuffers to not be used 2013-04-22 14:15:14 +10:00
Greg Wilkins c3325e8b04 405530 Wrap AsyncContext to throw ISE after complete 2013-04-22 11:33:44 +10:00
Greg Wilkins 22c3151ad6 added some more properties to the configuration 2013-04-18 17:05:03 +10:00
Jesse McConnell 7baaa14ba1 [maven-release-plugin] prepare for next development iteration 2013-04-17 11:46:39 -05:00
Jesse McConnell e390b54b25 [maven-release-plugin] prepare release jetty-9.0.2.v20140417 2013-04-17 11:46:31 -05:00
Jesse McConnell 0b20467c6f [maven-release-plugin] prepare for next development iteration 2013-04-15 11:40:45 -05:00
Jesse McConnell 3aa4301711 [maven-release-plugin] prepare release jetty-9.0.2.v20140415 2013-04-15 11:40:37 -05:00
Greg Wilkins a03a5c340b 405540 ServletContextListeners call in reverse in doStop 2013-04-15 14:31:41 +10:00
Greg Wilkins 4e3c7367af virtual host example 2013-04-15 12:29:08 +10:00
Simone Bordet de7adaf0d2 Reverted usages of ConcurrentArrayBlockingQueue until proven it's correctly implemented. 2013-04-12 13:58:31 +02:00
Greg Wilkins 9bb0260410 improved shutdown handling for travis CI 2013-04-11 12:01:01 +10:00
Greg Wilkins 4c04f5dd40 403591 do not use the ConcurrentArrayBlockingQueue for thread pool, selector and async request log 2013-04-11 11:46:07 +10:00
Greg Wilkins e8d9625dcc adjust tests to make them more travis CI compatible 2013-04-11 08:33:28 +10:00
Greg Wilkins b8dd8bde14 [maven-release-plugin] prepare for next development iteration 2013-04-08 12:31:34 +10:00
Greg Wilkins bf3771904b [maven-release-plugin] prepare release jetty-9.0.1.v20130408 2013-04-08 12:30:59 +10:00
Greg Wilkins 44ec0b3f49 403360 Named connectors 2013-04-08 09:25:54 +10:00
Greg Wilkins 5d451e5fec Merge branch 'master' of ssh://git.eclipse.org/gitroot/jetty/org.eclipse.jetty.project 2013-04-05 08:31:48 +11:00
Greg Wilkins 1191142c97 Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java
	jetty-servlet/src/main/java/org/eclipse/jetty/servlet/DefaultServlet.java
2013-04-05 08:31:31 +11:00
Simone Bordet 72219d016b 404610 - Reintroduce ability to disallow TLS renegotiation. 2013-04-04 17:11:01 +02:00
Greg Wilkins e9185aa062 Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-04-04 16:09:19 +11:00
Greg Wilkins 3cd6d90e9f removed verbose output 2013-04-04 15:38:15 +11:00
Simone Bordet b312fffd7e 402666 - Improve handling of TLS exceptions due to raw socket close. 2013-03-29 16:57:05 +01:00
Greg Wilkins 5b3d866a27 Merge branch 'master' of ssh://git.eclipse.org/gitroot/jetty/org.eclipse.jetty.project 2013-03-28 16:03:34 +11:00
Greg Wilkins 7db1b36be9 Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java
	jetty-server/src/test/java/org/eclipse/jetty/server/ssl/SslBytesServerTest.java
2013-03-28 15:04:42 +11:00
Jan Bartel af5f8aac33 403122 Session replication fails with ClassNotFoundException when session attribute is Java dynamic proxy 2013-03-28 15:02:33 +11:00
Greg Wilkins 1f9e4f3e5c Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-03-28 14:05:24 +11:00
Greg Wilkins 72162c0342 404517 Close connection if request received after half close 2013-03-28 14:04:24 +11:00
Greg Wilkins fd099aa77d 404511 Replaced all StringMap usage with Tries 2013-03-28 13:20:47 +11:00
Jan Bartel 370df6e723 404036 JDBCSessionIdManager.doStart() method should not call cleanExpiredSessions() because Listeners can't be notified 2013-03-26 23:45:28 +11:00
Greg Wilkins 108a8e9dca 404326 set status when Request.setHandled(true) is called 2013-03-26 23:36:31 +11:00
Greg Wilkins 8c405f4503 404323 Improved parameterization of https and SPDY 2013-03-26 16:29:48 +11:00
Greg Wilkins 9079bae9c0 404323 Improved parameterization of https and SPDY 2013-03-26 13:38:28 +11:00
Greg Wilkins 6c9f090479 removed System.outs 2013-03-22 11:34:11 +11:00
Jan Bartel bcdf071a9c 404067 If cannot connect to db fail startup of JDBCSessionIdManager 2013-03-22 10:00:05 +11:00
Jan Bartel 7c2321b9d4 403510 HttpSession maxInactiveInterval is not serialized in HashSession 2013-03-21 12:23:52 +11:00
Greg Wilkins b2f3a05503 403591 do not use the ConcurrentArrayBlockingQueue for thread pool, selector and async request log 2013-03-21 09:24:02 +11:00
Joakim Erdfelt bb7a1d4ca6 396562 - Add an implementation of RequestLog that supports Slf4j 2013-03-20 13:17:14 -07:00
Joakim Erdfelt a4d3740900 Merge branch 'jetty-8' -> 'master' 2013-03-18 12:34:57 -07:00
Greg Wilkins 8514e8452b 403591 use the ConcurrentArrayBlockingQueue for thread pool, selector and async request log 2013-03-18 15:37:00 +11:00
Jan Bartel b69b52d984 Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-03-18 15:27:10 +11:00
Jan Bartel 25f5e38e13 403513 jetty:run goal cannot be executed twice during the maven build 2013-03-18 14:33:49 +11:00
Greg Wilkins 5f1980f408 merged unsafe blocking Q, removed unsafe usage and usage of Q 2013-03-18 13:27:37 +11:00
Greg Wilkins ba9d70589a Merge branch 'master' into unsafe 2013-03-18 12:02:37 +11:00
Greg Wilkins 47bf3eef0c use async request log by default 2013-03-18 11:09:50 +11:00
Greg Wilkins e8d76ef12c Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	examples/embedded/src/main/java/org/eclipse/jetty/embedded/SpdyServer.java
	jetty-client/src/test/java/org/eclipse/jetty/client/HttpExchangeTest.java
	jetty-io/src/test/java/org/eclipse/jetty/io/ThreadLocalBuffersTest.java
	jetty-server/src/main/config/etc/jetty-requestlog.xml
	jetty-server/src/test/java/org/eclipse/jetty/server/AsyncStressTest.java
	jetty-server/src/test/java/org/eclipse/jetty/server/HttpServerTestFixture.java
	jetty-server/src/test/java/org/eclipse/jetty/server/StressTest.java
	jetty-servlets/pom.xml
2013-03-18 11:09:13 +11:00
Greg Wilkins d21c8e5ca4 Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-03-18 10:53:14 +11:00
Greg Wilkins 63f2719938 403570 Asynchronous Request Logging 2013-03-18 10:48:06 +11:00
Jan Bartel b15f9340d0 Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-03-15 14:40:19 +11:00
Jan Bartel 41feea7e01 402844 STOP.PORT & STOP.KEY behaviour has changed 2013-03-15 14:38:53 +11:00
Greg Wilkins c577783fa6 inject new Q into ThreadPool 2013-03-15 12:30:49 +11:00
Joakim Erdfelt 8a96cc8c4a Merge branch 'jetty-7' into jetty-8 2013-03-14 16:54:35 -07:00
Joakim Erdfelt 5084a1430f Fixing build.
+ Bumping jetty-test-helper to 2.0
 + Bumping jetty-version-maven-plugin to 1.0.10
 + Fixing JDK 1.5 build warts
 + Updating Stress use for new "test.stress" property introduced by upgrades
2013-03-14 16:52:52 -07:00
Thomas Becker 93efdcf080 384552 add comment to jetty-https.xml describing keymanager password 2013-03-14 11:23:55 +01:00
Greg Wilkins 29b83dff9b 402626 Do not required endpoint host checking by default 2013-03-14 09:25:28 +11:00
Jesse McConnell acb5919844 [maven-release-plugin] prepare for next development iteration 2013-03-12 09:10:50 -05:00
Jesse McConnell d6ebdc0a4a [maven-release-plugin] prepare release jetty-7.6.10.v20130312 2013-03-12 09:10:42 -05:00
Jesse McConnell 0405c8ded6 [maven-release-plugin] prepare for next development iteration 2013-03-12 09:05:25 -05:00
Jesse McConnell 852178cd01 [maven-release-plugin] prepare release jetty-8.1.10.v20130312 2013-03-12 09:05:14 -05:00
Jan Bartel 0834ad259c 402706 HttpSession.setMaxInactiveInterval(int) does not change JDBCSession expiry 2013-03-11 19:31:39 +11:00
Greg Wilkins 11442814fa Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHandler.java
2013-03-11 17:23:54 +11:00
Joakim Erdfelt bbf44a5d32 Merge branch 'release-9' 2013-03-09 06:16:25 -07:00
Joakim Erdfelt 897c35c2cb [maven-release-plugin] prepare for next development iteration 2013-03-08 11:33:23 -07:00
Joakim Erdfelt cc6196af50 [maven-release-plugin] prepare release jetty-9.0.0.v20130308 2013-03-08 11:33:15 -07:00
Jan Bartel f1cd726ba2 Merge remote-tracking branch 'origin/jetty-8' 2013-03-08 14:27:24 +11:00
Jan Bartel 9055132144 Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-03-08 13:45:56 +11:00
Jan Bartel 57cff606fd 400144 When loading a session fails the JDBCSessionManger produces duplicate session IDs 2013-03-08 13:33:48 +11:00
Joakim Erdfelt 7fc38f6c0f [maven-release-plugin] prepare for next development iteration 2013-03-07 19:14:19 -07:00
Joakim Erdfelt 96d045442f [maven-release-plugin] prepare release jetty-9.0.0.v20130307 2013-03-07 19:14:11 -07:00
Greg Wilkins b7aded6e55 392129 fixed merged of handling of timeouts after startAsync 2013-03-08 11:22:07 +11:00
Greg Wilkins ae7248b6d2 Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java
	jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContinuation.java
	jetty-server/src/main/java/org/eclipse/jetty/server/Request.java
	jetty-servlets/src/test/java/org/eclipse/jetty/servlets/AbstractDoSFilterTest.java
2013-03-08 11:21:05 +11:00
Greg Wilkins face3b3584 392129 fixed handling of timeouts after startAsync 2013-03-08 09:35:08 +11:00
Jan Bartel f714504acc Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	jetty-server/src/main/java/org/eclipse/jetty/server/session/JDBCSessionManager.java
2013-03-07 12:56:42 +11:00
Jan Bartel 621b1489e1 Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-03-07 12:17:20 +11:00
Jan Bartel a636fbfe7b 400142 ConcurrentModificationException in JDBC SessionManger
As part of this fix, refactored the JDBCSession to remove the SessionData object.
2013-03-07 12:02:27 +11:00
Greg Wilkins e283d72f25 Merge remote-tracking branch 'origin/jetty-8'
Conflicts:
	jetty-server/src/main/java/org/eclipse/jetty/server/session/AbstractSessionIdManager.java
2013-03-07 09:09:23 +11:00
Greg Wilkins 60a6340f8f Merge remote-tracking branch 'origin/jetty-7' into jetty-8 2013-03-07 08:36:23 +11:00
Greg Wilkins 1e0b9d4d97 402485 reseed secure random 2013-03-07 08:34:42 +11:00
Jesse McConnell 778ee1411b [maven-release-plugin] prepare for next development iteration 2013-03-06 10:21:46 -06:00