Commit Graph

1495 Commits

Author SHA1 Message Date
Greg Wilkins d63577b4e9 361325 359292 Allow KeyStore to be set 2011-10-19 15:20:01 +11:00
Greg Wilkins 49f8b0de1a Websocket partially refactored and passing tests 2011-10-18 21:59:49 +11:00
Greg Wilkins 6edb7c1930 organised imports 2011-10-18 15:05:22 +11:00
Greg Wilkins e43b718fb1 Refactored NIO to better handle half closes. Applied the following policy:
Call shutdownOutput to signal the other end that you have written all the data that your are going to write (eg and the end of a non persistent HTTP response).   This can be done either by generator (when it is complete) or coordinator or handle - but we need to decide which and have only 1 doing it.
    Call shutdownInput to signal your own end that you have read -1 and to allow other local code to check that with an isInputShutdown. Ideally we could get by without any calls at all to shutdownInput, so long as we well handle reading -1 (Currently we don't).  This should be done by whatever does the IO read.
    Calling close should always be a real TCP close, even with SSL. SSL shutdown
    The default handling of an idle callback should be close.  But some connections (NOT endpoints) may implement idle as initiating a shutdown exchange (eg websocket close).   If they do, this is state that should be held in the connection or parser - ie do-this-exhange-and-then-shutdown
    Call close when you want to shutdown Output and you have already read -1, so input is already shutdown.   We need to double verify that this is correct and that if a FIN has been received from the other end, that a close will not result in a reset.  I'll do that today.
    Call close when you want to shutdown Input and output has already been shutdown.  This means you have read -1 after having sent a FIN.
    Call close on any errors.

The current state is that server HttpConnection appears to be working well.  Other connection types have not been updated and/or tested
2011-10-18 14:38:02 +11:00
Jan Bartel ea56eaff00 Cient socket fd leak when access an URL with bad domain 2011-10-10 13:09:58 +11:00
Simone Bordet 074722f8c7 360051 SocketConnectionTest.testServerClosedConnection is excluded.
Strengthened condition under which the handling is aborted due to a remote close: now checking also if the endpoint has been closed locally.
2011-10-06 22:05:23 +02:00
Simone Bordet e741b98510 360051 SocketConnectionTest.testServerClosedConnection is excluded.
Reworked StreamEndPoint methods isInputShutdown(), isOutputShutdown(), shutdownInput(), shutdownOutput(), and updated subclasses to call super where appropriate.
The test had to be modified to work properly with SocketConnector, because behavior is different from SelectConnector, but the CPU spinning is fixed.
2011-10-06 16:08:12 +02:00
Greg Wilkins 76cdf9badb 357240 more half close refinements 2011-10-06 11:24:06 +11:00
Simone Bordet 12469af499 Fixed case where the http parser has received some but not all data, and suddenly reads -1. 2011-10-05 16:36:33 +02:00
Greg Wilkins 6abf426627 357240 half closed client test 2011-10-05 22:14:48 +11:00
Greg Wilkins 57d81603c4 cleanup debug output 2011-10-05 22:01:49 +11:00
Greg Wilkins d0a2557527 357240 fixed client connection recycle 2011-09-29 15:50:09 +10:00
Greg Wilkins f14bbbfc0a fixed bad merge 2011-09-29 08:17:23 +10:00
Greg Wilkins 21a111db27 Merge branch 'master' into sslClose
Conflicts:
	jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java
2011-09-29 08:10:39 +10:00
Greg Wilkins f45a720045 357240 debug client tests 2011-09-29 08:06:51 +10:00
Thomas Becker 1e5b85a2cb 359255: Allow HttpExchange state change from START to EXPIRED 2011-09-28 10:56:46 -05:00
Thomas Becker cceef37f17 359255: Code format 2011-09-28 10:44:03 -05:00
Jesse McConnell 74d5e800f6 fix some formatting issues with code conventions 2011-09-28 10:34:08 -05:00
David Kellum 40b25e6f5a JETTY-1421 Implement RedirectListener.onException,onConnectionFailed 2011-09-28 10:30:29 -05:00
David Kellum d37f2ca10c JETTY-1420 Set Host header for new request in RedirectListener 2011-09-28 10:21:29 -05:00
Greg Wilkins 603ee3dae1 357240 fixed client tests 2011-09-29 00:23:31 +10:00
Greg Wilkins a531fbc5a2 357240 fixed client tests 2011-09-29 00:09:13 +10:00
Greg Wilkins f73a6422f0 357240 fixed client test 2011-09-29 00:02:06 +10:00
Greg Wilkins fbf0fad076 357240 improved ishut/oshut handling 2011-09-28 22:50:38 +10:00
Greg Wilkins d0ffa5cb1a Merge branch 'master' into sslClose 2011-09-28 16:24:01 +10:00
Greg Wilkins 6eaa1364e3 357240 work in progress 2011-09-28 16:21:57 +10:00
Jan Bartel 65e7d65442 358959 File descriptor leak with UnresolvedAddressException 2011-09-28 14:59:34 +10:00
Greg Wilkins 27753fa747 removed debug 2011-09-26 23:00:57 +10:00
Greg Wilkins 75645cef0e 358674 Added include/exclude protocols to SslContextFactory 2011-09-23 08:02:42 +10:00
Greg Wilkins 633f3b1588 JETTY-1423 force connection to be closed returned 2011-09-22 09:22:27 +10:00
Jesse McConnell 21ddd768f0 [Bug 358147] Add catch for UnknownHostException to fix leaky file descriptor in client 2011-09-20 14:26:17 -05:00
Thomas Becker 4b7f8d79dd 358147: SelectConnector catch UnresolvedAddressException to avoid socket leak 2011-09-20 14:21:26 -05:00
Thomas Becker f0fe55165b SelectConnector.java code format 2011-09-20 14:21:18 -05:00
Greg Wilkins 26c8cc8514 346419 testing HttpClient FDs 2011-09-20 18:00:24 +10:00
Joakim Erdfelt a3b2a71aea Setting back to debug level 2011-09-15 11:28:56 -07:00
Joakim Erdfelt 18c5483cc4 353509 - jetty-client unit tests are running too long
+ Fixing last remaining test failure with some careful
  GenericServerHandler refactoring.
2011-09-14 11:23:11 -07:00
Thomas Becker 5530594128 353509: Fixed merging issues 2011-09-14 08:41:33 -07:00
Joakim Erdfelt fce4192fd9 353509 - jetty-client unit tests are running too long 2011-09-12 15:04:59 -07:00
Michael Gorovoy 9c862f2699 HttpExchangeTest#testOptionsWithExchange no longer fails on Mac OS X 2011-08-30 16:47:19 -04:00
Michael Gorovoy aefd353752 Adjusted TimeoutExchangeTest timeouts 2011-08-30 15:35:13 -04:00
Greg Wilkins 45148353ec 293739 Hide stacks in named log testing. Various other minor log cleanups in output. 2011-08-30 16:05:21 +10:00
Greg Wilkins 33fa7afb47 356144 added SelectorManager.setSelectorPriorityDelta(int) 2011-08-30 14:24:28 +10:00
Michael Gorovoy 0763e040e5 353014 TimeoutExchangeTest run time reduced
Patch provided by Thomas Becker <tbecker@intalio.com>
2011-08-29 16:18:45 -04:00
Joakim Erdfelt 79db394552 Merge from trunk 2011-08-26 10:12:45 -07:00
Michael Gorovoy 103d7a87c2 353623 Added new methods to HttpExchange 2011-08-26 03:49:58 -04:00
Joakim Erdfelt 4ace183764 Merging from master 2011-08-25 12:09:36 -07:00
Joakim Erdfelt 3399242d83 293739 - Deprecate static Jetty Log usage in favor of named logs
+ Finished conversion of jetty-ajp, jetty-client, jetty-deploy,
jetty-jaspi, jetty-jndi, jetty-plus, jetty-webapp
2011-08-24 13:01:00 -07:00
Michael Gorovoy 5aced83287 Added tests for missing CONTINUE 100, error response, and timeout 2011-08-23 16:56:05 -04:00
Greg Wilkins da517c815a JETTY-1410 handle 1xx in similar fashion to 401s and 302s 2011-08-23 17:07:31 +10:00
Michael Gorovoy 07b8f08a37 JETTY-1410 HTTP client handles CONTINUE 100 response correctly 2011-08-23 16:20:37 +10:00
Michael Gorovoy d8d5414f64 Added unit test for unexpected data being received by the client 2011-08-19 13:11:57 -04:00
Greg Wilkins 6b9ecd0806 353073 Improved client API to use futures 2011-08-11 11:50:23 +10:00
Thomas Becker 0a6c7ad846 353563: HttpDestinationQueueTest too slow
Signed-off-by: Jesse McConnell <jesse.mcconnell@gmail.com>
2011-08-02 08:39:38 -05:00
Jesse McConnell cd0dd3e8ff [Bug 352999] test performance patch applied to jetty-client, thanks Thomas 2011-08-02 08:04:18 -05:00
Greg Wilkins 2806869cfd 353073 test harness for websocket client and improved ietf draft 10 compliance 2011-08-01 12:35:01 +10:00
Greg Wilkins 2be177484e Miscellaneous changes resulting from the optimization for 7.5.x
Mostly refining debug and toString()
Use shutdown for idle expiry
2011-07-22 18:12:56 +10:00
Greg Wilkins f4255bdeef Merge branch 'master' into performance 2011-07-18 09:16:51 +10:00
Michael Gorovoy dc3445cea2 298502 CONNECT uses same HTTP version as original request 2011-07-15 09:32:55 -04:00
Greg Wilkins 61b2a5c751 298502 Handle 200 Connect responses with no content-length 2011-07-15 15:50:41 +10:00
Greg Wilkins b62c5cdde6 298502 added ProxyFakeTunnelTest.java to demonstrate the issue 2011-07-15 15:06:26 +10:00
Greg Wilkins d8cb8556aa return client buffers 2011-07-14 11:58:14 +10:00
Greg Wilkins b890ff8fb2 applied jetty-7p 7f68abf..b2e4270, 7f68abf..a900c5e, 9a93c9e..9f94539. decomposed async and blocking handling. Simplified HttpFields and Buffer handling from the HttpParser. 2011-07-07 12:16:58 +10:00
Michael Gorovoy b5a2e7e426 308851 Converted all jetty-client module tests to JUnit 4
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3459 7e9141cc-0065-0410-87d8-b60c137991c4
2011-07-02 00:57:56 +00:00
Michael Gorovoy c8375b286a 308851 Converted all jetty-client tests to JUnit 4
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3457 7e9141cc-0065-0410-87d8-b60c137991c4
2011-07-01 21:06:31 +00:00
Michael Gorovoy c17b91fa86 JETTY-1385 NPE in jetty client's HTttpExchange.setRequestContentSource(InputStream)
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3438 7e9141cc-0065-0410-87d8-b60c137991c4
2011-06-29 19:01:17 +00:00
Michael Gorovoy 0b9f348132 308851 Convert HttpExchangeTest and related tests to JUnit 4
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3433 7e9141cc-0065-0410-87d8-b60c137991c4
2011-06-29 00:17:13 +00:00
Michael Gorovoy b290f203da Added TODO comments for disabled tests
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3429 7e9141cc-0065-0410-87d8-b60c137991c4
2011-06-27 15:13:22 +00:00
Michael Gorovoy 77b02e0ee0 350283 Excluded AsyncSslHttpExchangeTest.testPerf() from test runs on MacOS X unless stress is enabled
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3423 7e9141cc-0065-0410-87d8-b60c137991c4
2011-06-24 15:46:30 +00:00
Simone Bordet 922fb70344 Fixes #347137 (Allow SSL renegotiations by default in HttpClient).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3255 7e9141cc-0065-0410-87d8-b60c137991c4
2011-05-25 11:47:26 +00:00
Greg Wilkins b2f5416fcd made HttpClient dumpable
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3236 7e9141cc-0065-0410-87d8-b60c137991c4
2011-05-23 01:21:52 +00:00
Simone Bordet e438787325 Reviewed and cleaned up code for #345615 (Enable SSL Session caching).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3223 7e9141cc-0065-0410-87d8-b60c137991c4
2011-05-20 12:46:57 +00:00
Michael Gorovoy e5f549664e 345615 SSL Session caching improvements and test
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3157 7e9141cc-0065-0410-87d8-b60c137991c4
2011-05-16 22:54:53 +00:00
Michael Gorovoy ab85bcda4f 345615 Enable SSL Session caching
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3145 7e9141cc-0065-0410-87d8-b60c137991c4
2011-05-14 01:30:26 +00:00
Simone Bordet 3d192f98ab Fixes #340040 (Support for a total timeout).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3069 7e9141cc-0065-0410-87d8-b60c137991c4
2011-05-03 08:57:26 +00:00
Simone Bordet f8cb795a4f Setting non-blocking mode after connecting in blocking mode.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3049 7e9141cc-0065-0410-87d8-b60c137991c4
2011-04-30 15:00:00 +00:00
Simone Bordet 26751210e4 Changes in preparation for #340040 (Support for a total timeout).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3044 7e9141cc-0065-0410-87d8-b60c137991c4
2011-04-29 13:47:09 +00:00
Simone Bordet 057eb0a102 Fixes #343567 (HttpClient does not limit the destination's exchange queue).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3028 7e9141cc-0065-0410-87d8-b60c137991c4
2011-04-21 15:29:20 +00:00
Greg Wilkins 58652d8f09 342700 refine websocket API for anticipated changes
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3013 7e9141cc-0065-0410-87d8-b60c137991c4
2011-04-13 11:05:35 +00:00
Greg Wilkins dad96688b3 less verbose logging
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2989 7e9141cc-0065-0410-87d8-b60c137991c4
2011-04-07 00:50:13 +00:00
Simone Bordet 8df474ea97 Fixes #341171 (Locking in HttpDestination blocks all requests to the same address).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2963 7e9141cc-0065-0410-87d8-b60c137991c4
2011-04-04 14:30:11 +00:00
Greg Wilkins 1bd0adabfb 340949 Scanner delays file notifications until files are stable
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2948 7e9141cc-0065-0410-87d8-b60c137991c4
2011-04-01 02:18:18 +00:00
Simone Bordet f3a66396b1 Made the test more reliable under Windows.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2943 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-31 14:40:50 +00:00
Greg Wilkins 8d5b3c5261 341439 Blocking HttpClient does not use soTimeout for timeouts
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2940 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-31 00:30:22 +00:00
Simone Bordet cf09f69e53 Fixed #341386 (Remote close not detected by HttpClient).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2938 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-30 15:50:13 +00:00
Jesse McConnell 6d4ec6a4bc initialize booleans in test exchange
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2937 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-30 15:36:25 +00:00
Greg Wilkins f814c815d2 improved tests
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2930 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-30 06:06:23 +00:00
Simone Bordet 05c3f0338d Improved handling of connection close, in case a request gets no response because the connection has been closed.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2921 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-29 15:15:00 +00:00
Greg Wilkins fdf199e254 organized imports
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2912 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-25 05:59:18 +00:00
Michael Gorovoy be843880b7 340878 Integrations should be able to load their own keystores
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2910 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-24 17:22:40 +00:00
Greg Wilkins 3c3430718b 340265 Improve handling of io shutdown in SSL
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2907 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-23 06:49:57 +00:00
Greg Wilkins a6483bfa6f 340265 Improve handling of io shutdown in SSL
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2906 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-23 03:36:06 +00:00
Greg Wilkins 3a267d9dd8 JETTY-1245 Pooled Buffers implementation
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2885 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-14 03:09:56 +00:00
Michael Gorovoy 626ef8271b 339150 Validate client certificate when it is used for authentication
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2882 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-12 02:01:01 +00:00
Greg Wilkins 31d8e8b3dc 337685 more common code
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2880 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-11 05:00:45 +00:00
Greg Wilkins 6cbd1225a6 337685 Update websocket API in preparation for draft -07
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2878 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-10 13:32:31 +00:00
Greg Wilkins e20fa91252 337685 Update websocket API in preparation for draft -07
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2877 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-10 13:15:27 +00:00
Greg Wilkins d0b4ddcb28 rolled back the API changes for 7.3.1, will redo for 7.4.0
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2846 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-02 12:21:12 +00:00
Michael Gorovoy 8f09ef1266 316382: support a more strict SSL option with certificates
Converted test classes to use new SslContextFactory API.

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2832 7e9141cc-0065-0410-87d8-b60c137991c4
2011-03-01 00:40:11 +00:00
Greg Wilkins 2cc4fbb5ee 337685 Work in progress on draft 6 websockets
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2831 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-28 09:45:41 +00:00
Greg Wilkins 1fd3bc1de2 318105 backed out recent changes
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2826 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-23 22:07:40 +00:00
Greg Wilkins d753311181 318105 Consistent return of null from continuation.getServletResponse
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2823 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-23 05:05:38 +00:00
Greg Wilkins 1070476469 337898 set client HttpConnection max idle time from exchange timeout
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2821 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-23 00:15:56 +00:00
Greg Wilkins 8acf49568c 337678 use the httpClient timerQ for connect timeouts
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2819 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-22 22:05:43 +00:00
Greg Wilkins f6349cd762 337898 increase client test timeout
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2818 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-22 22:04:35 +00:00
Simone Bordet f092ddbe0d Fixes #337896 (HttpExchange.timeout does not override HttpClient.timeout)
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2817 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-22 20:46:24 +00:00
Simone Bordet 373574cbcc Fixes JETTY-1335 (HttpClient's SelectConnector clean-up)
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2816 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-22 11:10:37 +00:00
Simone Bordet 0ace68632c Fixes JETTY-1335 (HttpClient's SelectConnector clean-up)
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2815 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-22 10:38:00 +00:00
Greg Wilkins a4f122930a 337685 Work in progress on draft 5 websockets
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2810 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-22 03:32:07 +00:00
Greg Wilkins 02e75add4f 337678 Readded optional async connection mode for HttpClient
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2809 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-22 03:28:43 +00:00
Michael Gorovoy b34dbd246f 316382: support a more strict SSL option with certificates
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2799 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-16 23:41:14 +00:00
Michael Gorovoy 01955d7295 316382: support a more strict SSL option with certificates
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2795 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-16 01:00:03 +00:00
Simone Bordet 50a686bfff Removed leftover code from the fix of #333717.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2780 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-11 11:59:08 +00:00
Joakim Erdfelt 9aea1658df Updating reference to keystore to use MavenTestingUtils techniques instead.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2775 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-10 16:13:10 +00:00
Joakim Erdfelt c7d2d27945 Bumping up jetty-test-helper to v1.2 to use Stress helper.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2766 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-09 22:45:08 +00:00
Greg Wilkins f807e15c77 335329 Stop SSL spin during handshake and renogotiate
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2719 7e9141cc-0065-0410-87d8-b60c137991c4
2011-02-01 01:57:12 +00:00
Joakim Erdfelt acc4f230fc Merging back /branches/jetty-bug-296978 revs 2674:HEAD
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2709 7e9141cc-0065-0410-87d8-b60c137991c4
2011-01-28 18:58:47 +00:00
Jesse McConnell 3c664563be Bug 334311 fix buffer reuse issue in CachedExchange
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2663 7e9141cc-0065-0410-87d8-b60c137991c4
2011-01-14 22:07:09 +00:00
Jesse McConnell bcde60bd2f Bug 329746 client option to set just truststore and use strict ssl context
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2655 7e9141cc-0065-0410-87d8-b60c137991c4
2011-01-12 17:25:24 +00:00
Jesse McConnell 8f5bd3b063 Bug 333717 HttpClient can't get local listen address, http exchange can return the local address used for the connection.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2650 7e9141cc-0065-0410-87d8-b60c137991c4
2011-01-11 19:55:31 +00:00
Greg Wilkins 835751c2ef improved test harness timing
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2538 7e9141cc-0065-0410-87d8-b60c137991c4
2010-11-19 00:25:32 +00:00
Greg Wilkins b06edcd858 328988 added session idle save and reduced synchronization
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2466 7e9141cc-0065-0410-87d8-b60c137991c4
2010-11-03 02:47:05 +00:00
Greg Wilkins c76886e2aa moved B64Code to util
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2399 7e9141cc-0065-0410-87d8-b60c137991c4
2010-10-25 03:33:16 +00:00
Greg Wilkins dddbe12c97 327562 Implement all X-Forwarded headers in ProxyServlet
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2343 7e9141cc-0065-0410-87d8-b60c137991c4
2010-10-13 00:34:58 +00:00
Greg Wilkins de178f18c6 324369 Improved handling of multiple versions of draft-ietf-hybi-thewebsocketprotocol
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2342 7e9141cc-0065-0410-87d8-b60c137991c4
2010-10-13 00:34:30 +00:00
Greg Wilkins 3df18cb180 327469 removed needless java6 dependencies
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2340 7e9141cc-0065-0410-87d8-b60c137991c4
2010-10-11 23:17:47 +00:00
Simone Bordet 88bfdf504c More fixes for #327183 (Allow better configurability of HttpClient for TLS/SSL).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2332 7e9141cc-0065-0410-87d8-b60c137991c4
2010-10-08 10:38:34 +00:00
Simone Bordet cd7926584d Fixes #327183 (Allow better configurability of HttpClient for TLS/SSL).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2329 7e9141cc-0065-0410-87d8-b60c137991c4
2010-10-07 08:21:12 +00:00
Greg Wilkins 837b477f12 325105 websocket ondisconnect fixed
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2273 7e9141cc-0065-0410-87d8-b60c137991c4
2010-09-14 11:47:07 +00:00
Greg Wilkins 1596451908 324369 Implement draft-ietf-hybi-thewebsocketprotocol-01
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2245 7e9141cc-0065-0410-87d8-b60c137991c4
2010-09-03 07:05:53 +00:00
Greg Wilkins 995df89b22 324369 Implement draft-ietf-hybi-thewebsocketprotocol-01
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2242 7e9141cc-0065-0410-87d8-b60c137991c4
2010-09-03 03:41:05 +00:00
Greg Wilkins a456b2b600 321735 HttpClient onException called for buffer overflow.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2213 7e9141cc-0065-0410-87d8-b60c137991c4
2010-08-16 05:46:17 +00:00
Jesse McConnell 129184744a JETTY-912 add exchange timeout
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2204 7e9141cc-0065-0410-87d8-b60c137991c4
2010-08-03 14:51:41 +00:00
Simone Bordet eb7a6ff734 Removed circular dependency between jetty-servlets and jetty-client.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2198 7e9141cc-0065-0410-87d8-b60c137991c4
2010-07-30 08:03:15 +00:00
Simone Bordet fcc0c71d8f Fixes #298502 (Https exchange through an http proxy).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2197 7e9141cc-0065-0410-87d8-b60c137991c4
2010-07-29 23:34:47 +00:00
Greg Wilkins ef9ebf31b6 314087 Simplified SelectorManager
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2189 7e9141cc-0065-0410-87d8-b60c137991c4
2010-07-28 13:11:40 +00:00
Greg Wilkins 9f0a75da75 319334 improved resource cache
Made the cache use concurrent data structures
Removed the dual NIO/BIO caches
Use the cache for streaming data
made DefaultServlet check for shared cache
some javadoc cleanups

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2085 7e9141cc-0065-0410-87d8-b60c137991c4
2010-07-09 04:45:52 +00:00
Greg Wilkins 3e515dd060 296570 EOFException for HttpExchange when HttpClient.stop called
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2067 7e9141cc-0065-0410-87d8-b60c137991c4
2010-07-05 04:42:35 +00:00
Greg Wilkins 75dd71b1ff 296570 EOFException for HttpExchange when HttpClient.stop called
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2066 7e9141cc-0065-0410-87d8-b60c137991c4
2010-07-05 02:49:37 +00:00
Greg Wilkins 517130e909 317759 Allow roles and constraints to be added after init
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2043 7e9141cc-0065-0410-87d8-b60c137991c4
2010-06-24 00:39:13 +00:00
Michael Gorovoy 91e134a7cc 316334 Breaking change on org.eclipse.jetty.client.HttpExchange
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1954 7e9141cc-0065-0410-87d8-b60c137991c4
2010-06-09 17:48:26 +00:00
Simone Bordet 6adb41cf5d Reviewed patch for #307457 (Exchanges are left unhandled when connection is lost): improved and cleaned up the fix.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1874 7e9141cc-0065-0410-87d8-b60c137991c4
2010-05-26 12:37:56 +00:00
Simone Bordet 222826d2f7 First pass to fix #308851.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1873 7e9141cc-0065-0410-87d8-b60c137991c4
2010-05-26 10:24:11 +00:00
Greg Wilkins f728f9dfa3 296567 HttpClient RedirectListener handles new HttpDestination
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1872 7e9141cc-0065-0410-87d8-b60c137991c4
2010-05-26 08:04:28 +00:00
Michael Gorovoy 0e780cd2f8 307457 Exchanges are left unhandled when connection is lost
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1871 7e9141cc-0065-0410-87d8-b60c137991c4
2010-05-26 04:44:30 +00:00
Greg Wilkins edd416d583 312948 Recycle SSL crypto buffers
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1827 7e9141cc-0065-0410-87d8-b60c137991c4
2010-05-20 10:15:15 +00:00
Michael Gorovoy 16ee953581 306226 HttpClient should allow changing the keystore and truststore type
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1767 7e9141cc-0065-0410-87d8-b60c137991c4
2010-05-12 15:30:31 +00:00
Greg Wilkins becb140427 310918 Fixed write blocking for client HttpConnection
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1765 7e9141cc-0065-0410-87d8-b60c137991c4
2010-05-12 13:07:20 +00:00
Greg Wilkins d994f2db2d #296650 JETTY-1198 reset idle timeout on request body chunks
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1654 7e9141cc-0065-0410-87d8-b60c137991c4
2010-05-03 18:52:16 +00:00
Greg Wilkins bc497c6114 increased times
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1631 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-30 13:14:31 +00:00
Greg Wilkins 012b72a7f4 redundant
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1630 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-30 13:13:22 +00:00
Joakim Erdfelt b7b067e7f3 309185 - Fix the over 300 Javadoc warnings
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1627 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-29 23:03:36 +00:00
Joakim Erdfelt 6bc437c298 309185 - Fix the over 300 Javadoc warnings
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1626 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-29 23:03:04 +00:00
Greg Wilkins dffed8cef7 310918 Synchronize content exchange
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1622 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-28 22:38:33 +00:00
Simone Bordet 9c8160db02 Joining the server at the end of the test.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1612 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-27 17:15:09 +00:00
Greg Wilkins fb284cb2a8 debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1546 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 13:02:36 +00:00
Greg Wilkins 5da4ce77c0 debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1545 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 12:56:06 +00:00
Greg Wilkins 28ead0cdbe debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1544 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 12:48:13 +00:00
Greg Wilkins af0e30d908 debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1543 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 12:43:24 +00:00
Greg Wilkins 7fcf968406 debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1542 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 12:23:55 +00:00
Greg Wilkins 79dd3c70db debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1541 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 12:16:06 +00:00
Greg Wilkins 4a1923d007 debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1540 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 12:06:43 +00:00
Greg Wilkins 047a1dd9c0 debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1539 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 11:54:48 +00:00
Greg Wilkins de06e34b06 debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1538 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 11:48:55 +00:00
Greg Wilkins b72ec70899 debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1537 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 11:03:05 +00:00
Greg Wilkins 20d7ba4b9d no debug
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1536 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 10:44:24 +00:00
Greg Wilkins a32d7cd517 JETTY-1200 SSL NIO Endpoint wraps non NIO buffers
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1535 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-21 10:25:46 +00:00
Greg Wilkins fcd0c6a119 294563 fixed race in test
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1509 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-13 16:34:08 +00:00
Greg Wilkins ac50ff46f3 294563 Websocket client connection
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1476 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-07 11:09:17 +00:00
Greg Wilkins 54117dad5b 307898 Handle large/async websocket messages
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1434 7e9141cc-0065-0410-87d8-b60c137991c4
2010-04-01 16:39:26 +00:00
Greg Wilkins 6c2741bbd6 297552 Dont call Continuation timeouts from acceptor tick
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1418 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-29 21:51:18 +00:00
Greg Wilkins c4e8eb1a29 306782 Do not skip content if 100 not sent, but content available
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1417 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-27 21:07:40 +00:00
Greg Wilkins 889e7eb728 298236 Additional unit tests for jetty-client
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1412 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-26 17:04:26 +00:00
Greg Wilkins 203d692be0 306880 - Support for UPGRADE in HttpClient
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1408 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-23 22:59:17 +00:00
Greg Wilkins 9cc74e8451 undo accidental commit
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1399 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-22 03:22:00 +00:00
Greg Wilkins 40ee939b4e 306376 extra tests
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1398 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-22 03:17:25 +00:00
Simone Bordet f9329e1a33 Fixes #306028 (Enable TCP_NODELAY by default in client connectors).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1385 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-16 15:31:20 +00:00
Greg Wilkins a4b09b44da JETTY-1192 Fixed Digested POST
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1384 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-16 14:33:47 +00:00
Greg Wilkins 96ec4af2df JETTY-1192 Fixed Digested POST
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1378 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-15 20:19:03 +00:00
Greg Wilkins 66533d0af9 304781 Reset HttpExchange timeout on slow request content. 304801 SSL connections FULL fix
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1342 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-05 12:04:05 +00:00
Greg Wilkins 67d656ea39 skip test on IBM
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1337 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-03 22:44:24 +00:00
Greg Wilkins 5dc2947b8a 304532 Skip some tests on IBM JVMs
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1334 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-03 15:55:49 +00:00
Greg Wilkins c53e8f4c39 handle stupid networks
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1331 7e9141cc-0065-0410-87d8-b60c137991c4
2010-03-03 13:35:47 +00:00
Greg Wilkins edbc262883 better handling if if stopped
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1265 7e9141cc-0065-0410-87d8-b60c137991c4
2010-02-12 03:52:35 +00:00
Greg Wilkins d208d55652 294563 removed UpgradeConnectionException from websocket handling
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1263 7e9141cc-0065-0410-87d8-b60c137991c4
2010-02-11 01:31:17 +00:00
Greg Wilkins e4ba31be97 302198 Rename HttpClient authorization classes to Authentication
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1250 7e9141cc-0065-0410-87d8-b60c137991c4
2010-02-08 22:20:26 +00:00
Greg Wilkins 72b546abe6 302198 Rename HttpClient authorization classes to Authentication
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1249 7e9141cc-0065-0410-87d8-b60c137991c4
2010-02-08 22:17:07 +00:00
Greg Wilkins 1a995d876d key store algorithm for Ibm JVM
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1228 7e9141cc-0065-0410-87d8-b60c137991c4
2010-02-02 14:00:58 +00:00
Greg Wilkins 0b7850d179 removed sun tests. dump to std err
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1211 7e9141cc-0065-0410-87d8-b60c137991c4
2010-01-24 23:46:49 +00:00
Joakim Erdfelt 4a35f6c109 Fixing for build on Windows 7, timeout occurs with values under 3000 on modern hardware
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1210 7e9141cc-0065-0410-87d8-b60c137991c4
2010-01-21 18:41:35 +00:00
Simone Bordet 23568f58af Fix for #300178 - HttpClients opens too many connections that are immediately closed.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1207 7e9141cc-0065-0410-87d8-b60c137991c4
2010-01-20 12:59:23 +00:00
Greg Wilkins ef75f443af 298234 Unit test for jetty-client handling different HTTP error codes
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1165 7e9141cc-0065-0410-87d8-b60c137991c4
2009-12-23 01:53:45 +00:00
Greg Wilkins 8c501855b7 JETTY-1155 HttpConnection.close notifies HttpExchange
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1163 7e9141cc-0065-0410-87d8-b60c137991c4
2009-12-22 01:32:45 +00:00
Greg Wilkins 69d093c6ef 298145 Reorganized test harness to separate the HTTP PUT and HTTP GET test URLs
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1162 7e9141cc-0065-0410-87d8-b60c137991c4
2009-12-21 23:18:42 +00:00
Greg Wilkins 4edb10b457 Content exchange mimetype with multiple parameters
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1161 7e9141cc-0065-0410-87d8-b60c137991c4
2009-12-21 02:41:00 +00:00
Greg Wilkins c5b8386194 298144 Unit test for jetty-client connecting to a server that uses Basic Auth
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1160 7e9141cc-0065-0410-87d8-b60c137991c4
2009-12-21 02:40:39 +00:00
Greg Wilkins 87da18834e 298144 Unit test for jetty-client connecting to a server that uses Basic Auth
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1159 7e9141cc-0065-0410-87d8-b60c137991c4
2009-12-19 23:13:41 +00:00
Greg Wilkins 4912c23732 297783 Handle HEAD reponses in HttpClient
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1157 7e9141cc-0065-0410-87d8-b60c137991c4
2009-12-17 03:31:26 +00:00
Greg Wilkins 87c21752a0 COMETD-46 reset ContentExchange response content on resend
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1155 7e9141cc-0065-0410-87d8-b60c137991c4
2009-12-16 23:13:02 +00:00
Greg Wilkins aaf4930edd 290765 Reset input for HttpExchange retry
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1137 7e9141cc-0065-0410-87d8-b60c137991c4
2009-12-10 01:21:42 +00:00
Greg Wilkins 5ed8699b52 websocket origin headers
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1073 7e9141cc-0065-0410-87d8-b60c137991c4
2009-11-19 21:47:14 +00:00
Simone Bordet 0c6f8e63bc Fix for #295421: Cannot reset() a newly created HttpExchange: IllegalStateException 0 => 0.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1063 7e9141cc-0065-0410-87d8-b60c137991c4
2009-11-18 09:42:47 +00:00
Greg Wilkins 2a3750fe1e 294563 Initial websocket implementation working
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1043 7e9141cc-0065-0410-87d8-b60c137991c4
2009-11-12 03:27:35 +00:00
Jesse McConnell 1da3065043 [Bug 294345] minor fix to previous patch for this bugzilla issue
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1042 7e9141cc-0065-0410-87d8-b60c137991c4
2009-11-11 04:11:27 +00:00
Simone Bordet 07c6830d6c Draft fix for the test failure.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1029 7e9141cc-0065-0410-87d8-b60c137991c4
2009-11-06 15:10:59 +00:00
Simone Bordet 3821e44760 Fix for #294345: Support for HTTP/301 + HTTP/302 response codes (patches from M. Gorovoy).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1028 7e9141cc-0065-0410-87d8-b60c137991c4
2009-11-06 14:00:13 +00:00
Simone Bordet 1017e2235d Fix for #294224: HttpClient timeout setting has no effect when connecting to host.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1027 7e9141cc-0065-0410-87d8-b60c137991c4
2009-11-04 20:07:19 +00:00
Greg Wilkins b71d1a7b0f Fixed client abort association
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1020 7e9141cc-0065-0410-87d8-b60c137991c4
2009-10-31 11:35:06 +00:00
Greg Wilkins 227fb5abec numerous code cleanups
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1014 7e9141cc-0065-0410-87d8-b60c137991c4
2009-10-26 07:48:39 +00:00
Greg Wilkins a24f48c113 292546 Proactively enforce HttpClient idle timeout
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1013 7e9141cc-0065-0410-87d8-b60c137991c4
2009-10-26 06:20:09 +00:00
Greg Wilkins 14a1f24a0f 290761 HttpExchange isDone handles intercepted events
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@968 7e9141cc-0065-0410-87d8-b60c137991c4
2009-10-05 14:22:32 +00:00
Simone Bordet 5d022a627b Fixed bug #291340: Race condition in onException() notifications.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@966 7e9141cc-0065-0410-87d8-b60c137991c4
2009-10-05 13:16:24 +00:00
Simone Bordet 0b70620b82 Fixed bug #289686: HttpExchange.setStatus() has too coarse synchronization.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@929 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-17 08:03:08 +00:00
Simone Bordet 432ab6605a Fixed bug #289221: HttpExchange does not timeout when using blocking connector.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@901 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-15 14:39:09 +00:00
Greg Wilkins d6415542d3 289027 deobfuscate HttpClient SSL passwords
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@894 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-15 01:30:16 +00:00
Greg Wilkins 22cb389992 less brittle test
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@890 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-14 10:18:06 +00:00
Simone Bordet 31f1684464 Added byte[] getter for the response content.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@888 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-12 13:48:02 +00:00
Simone Bordet 84c922dd4c Fixed bug #288401: HttpExchange.cancel() Method Unimplemented.
It is now implemented.
Improved Javadocs and made all members private.

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@881 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-11 14:24:28 +00:00
Simone Bordet c4f283538a Copyright header.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@879 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-11 14:13:28 +00:00
Greg Wilkins edc88820ac 282543 HttpClient SSL buffer type fix
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@878 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-11 12:48:28 +00:00
Jesse McConnell e87dfd072b apply fix from 7.0.0 to trunk
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@866 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-10 21:56:32 +00:00
Greg Wilkins c5983dbb1d 282543 HttpClient SSL buffer size fix
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@856 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-10 11:31:53 +00:00
Greg Wilkins 1ec196076a 282543 HttpClient SSL buffer size fix
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@854 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-10 08:00:20 +00:00
Simone Bordet d6bd35a773 Fix for bug #288772: Failure to connect does not set status to EXCEPTED.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@823 7e9141cc-0065-0410-87d8-b60c137991c4
2009-09-07 18:55:43 +00:00
Jesse McConnell df168e8e76 Bug 288182 PUT request fails during retry
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@790 7e9141cc-0065-0410-87d8-b60c137991c4
2009-08-31 21:06:13 +00:00
Jesse McConnell 4b22715b89 BUG 288153 reset exchange when resending
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@786 7e9141cc-0065-0410-87d8-b60c137991c4
2009-08-31 16:34:58 +00:00
Jesse McConnell 00d961d4fd git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@783 7e9141cc-0065-0410-87d8-b60c137991c4 2009-08-30 18:06:31 +00:00
Jesse McConnell 53ca33accb BUG 288055 resolved issue with jetty-client
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@782 7e9141cc-0065-0410-87d8-b60c137991c4
2009-08-30 17:57:47 +00:00
Jesse McConnell ed5fcdb786 resolved potential infinite webdav check exists loop
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@780 7e9141cc-0065-0410-87d8-b60c137991c4
2009-08-28 17:37:27 +00:00
Jesse McConnell 81e7516969 responseContent to protected so something that extends can see it
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@779 7e9141cc-0065-0410-87d8-b60c137991c4
2009-08-28 16:39:24 +00:00
Greg Wilkins 024df7b64e 286535 ContentExchange status code
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@720 7e9141cc-0065-0410-87d8-b60c137991c4
2009-08-13 23:58:17 +00:00
Greg Wilkins 4628a6869c 282447 concurrent destinations in HttpClient
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@640 7e9141cc-0065-0410-87d8-b60c137991c4
2009-08-05 15:34:31 +00:00
Greg Wilkins 964d9da7cd spelling
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@621 7e9141cc-0065-0410-87d8-b60c137991c4
2009-08-03 02:57:33 +00:00
Greg Wilkins b07b020c6b improved javadoc
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@615 7e9141cc-0065-0410-87d8-b60c137991c4
2009-08-02 23:27:18 +00:00
Greg Wilkins f13ac17713 280843 buffer pool mixing types
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@492 7e9141cc-0065-0410-87d8-b60c137991c4
2009-07-08 07:39:23 +00:00
Greg Wilkins d71050fa73 less verbose
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@442 7e9141cc-0065-0410-87d8-b60c137991c4
2009-06-27 06:52:25 +00:00
Jan Bartel d825ba729b 280707 client.HttpConnection does not catch and handle non-IOExceptions
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@421 7e9141cc-0065-0410-87d8-b60c137991c4
2009-06-18 03:27:50 +00:00
Greg Wilkins 0a8e71e89e reworked the buffers mechanism to be less conditional
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@396 7e9141cc-0065-0410-87d8-b60c137991c4
2009-06-15 07:11:04 +00:00
Greg Wilkins 963fd5da81 279725 Support 100 and 102 expectations
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@356 7e9141cc-0065-0410-87d8-b60c137991c4
2009-06-10 02:17:34 +00:00
Greg Wilkins 8f940927ff simplifications and fixes from porting auction to oort
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@325 7e9141cc-0065-0410-87d8-b60c137991c4
2009-06-01 05:04:37 +00:00
Greg Wilkins 5255060588 275396 Added ScopedHandler to set servlet scope before security handler
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@209 7e9141cc-0065-0410-87d8-b60c137991c4
2009-05-12 14:09:54 +00:00
Greg Wilkins ab24a94666 JETTY-1015 work in progress
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@207 7e9141cc-0065-0410-87d8-b60c137991c4
2009-05-07 06:46:40 +00:00
Greg Wilkins 3ee44fd757 JETTY-1015 Reduce BayeuxClient and HttpClient lock contention
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@206 7e9141cc-0065-0410-87d8-b60c137991c4
2009-05-05 14:13:18 +00:00
Greg Wilkins 1e0009aa32 removed HTTP specifics from connection dispatching
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@143 7e9141cc-0065-0410-87d8-b60c137991c4
2009-04-14 03:00:19 +00:00
Greg Wilkins 74de0dbec6 updated login service for logout.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@141 7e9141cc-0065-0410-87d8-b60c137991c4
2009-04-13 23:55:40 +00:00
Greg Wilkins da627b843f jetty @ eclipse initial commit
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@8 7e9141cc-0065-0410-87d8-b60c137991c4
2009-03-24 21:07:27 +00:00