Commit Graph

359 Commits

Author SHA1 Message Date
Thomas Becker e1fa106c19 Fix SslBytesServerTest failing on MacOS 2013-04-12 14:13:41 +02:00
Greg Wilkins 72162c0342 404517 Close connection if request received after half close 2013-03-28 14:04:24 +11: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
Simone Bordet ecfd7f74e6 376273 - Early EOF because of SSL Protocol Error on https://api-3t.paypal.com/nvp.
This was caused by the fact that the other peer closed the raw socket after sending data.
SslConnection was reading the data, but not notifying the application of the data, then
reading the abrupt close, which was causing an exception, ending up in the application
never being notified of the data that arrived.
Now we catch and ignore the exception during SSLEngine.closeInbound(), and we properly
send an alert to the other peer (instead of hard closing the connection as well).
In this way, the application has the chance to read the data and then close the connection.
2013-02-21 17:15:19 +01:00
Jan Bartel 92af54c3fc Make IdleTimeoutTest jdk1.5 compliant 2013-01-22 08:58:35 +11:00
Jan Bartel 91a94f8213 362226 HttpConnection "wait" call causes thread resource exhaustion 2013-01-21 16:43:57 +11:00
Jesse McConnell a4dbb5823c update license blocks for 2013 2013-01-11 14:57:51 -06:00
Greg Wilkins 36ddd3f5d6 393368 min websocket version 2012-11-05 11:02:50 +11:00
Greg Wilkins 65202e9abe 393363 Use Locale.ENGLISH for all toUpperCase and toLowerCase calls 2012-11-02 11:55:00 +11:00
Jan Bartel 2ed3a1688d 388102 Jetty HttpClient memory leaks when sending larger files 2012-08-30 15:37:32 +10:00
Jesse McConnell 5761c8201b [Bug 385049] fix issue with pipelined connections when switching protocols 2012-08-23 15:11:09 -05:00
Jesse McConnell 00ed549898 standardize license header blocks 2012-08-16 19:11:27 -05:00
Jan Bartel 60b90591aa Ignoring incomplete/incorrect test for now. 2012-07-20 11:12:59 +10:00
Simone Bordet c50e547152 384980 - Jetty client unable to recover from Time outs when connection count per address hits max.
Test that shows that upon initial investigation, HttpClient works well, contrary to what reported in the bug.
2012-07-13 14:17:44 +02:00
Jesse McConnell aa941f5711 quick pass through to clean up missing or incorrect license blocks 2012-07-11 12:29:46 -05:00
Joakim Erdfelt ce4e47c915 Making problematic testcase actually report a useful message on failure 2012-06-22 06:28:49 -07:00
Greg Wilkins a565c72adb 374550: remove printStackTrace calls 2012-04-12 16:51:59 +10:00
Simone Bordet 830557f018 Fixed infinite recursive loop. 2012-04-02 10:06:35 +02:00
Greg Wilkins 7e3b8bcfd4 374611: do not redispatch if already dispatched when SSL reads content on write 2012-03-19 15:48:39 +11:00
Jesse McConnell aff3e3f285 removing some tests due to expired keystores 2012-03-08 20:20:43 -06:00
Greg Wilkins 8c34d05516 365828: avoid DNS lookup for local address 2012-01-31 14:49:00 +11:00
Joakim Erdfelt 80ffe47e7e Tweaking test assertion for variety of values seen in various JVMs (with comments) 2012-01-20 10:32:03 -07:00
Greg Wilkins c696f14450 368821 improved test harness 2012-01-18 15:24:20 +11:00
Greg Wilkins 9ff8633554 368821 SslConnection.handle always calls wrapped Connection.handle, so state can be processed 2012-01-18 13:39:24 +11:00
Simone Bordet e609a65e61 368821 - SSL Spin on asyncDispatch.
Test (for now ignored) that reproduces the problem.
2012-01-17 23:05:41 +01:00
Simone Bordet cf30b19f7e Added one more SSL bytes tests that send RST while the server is read blocked. 2012-01-13 11:03:03 +01:00
Simone Bordet d4f522b9d4 Corrected SslConnection to clear the _inbound buffer if the input is shutdown
and the unwrapping yielded a buffer underflow.

This is important because isInputShutdown() returns true only if the _inbound
buffer is empty, and the check for the input shutdown is made in several places.

Added also more SSL bytes tests that send RST in order to test cases that throw
exceptions.
2012-01-11 22:22:42 +01:00
Greg Wilkins d66f45f2da 368240: renamed to use manage/unmanage instead of join/disjoin 2012-01-11 11:16:31 +11:00
Greg Wilkins cb22cfdbe5 368240: renamed to use manage/unmanage instead of join/disjoin 2012-01-11 11:06:14 +11:00
Simone Bordet b6f5edecb5 368240 - Better handling of locally created ThreadPool. Forgot to null out field. 2012-01-10 19:02:48 +01:00
Simone Bordet 3a30b4b7a5 368240 - Better handling of locally created ThreadPool. 2012-01-10 18:05:44 +01:00
Simone Bordet ba57d711c6 Cosmetics. 2012-01-10 17:39:17 +01:00
Greg Wilkins a7783ae568 368240: Fixed the start of dependent beans 2012-01-11 01:04:01 +11:00
Greg Wilkins 968a2ac95b 368240: Added concept of join to AggregateLifeCycle. Used by HttpClient and AbstractConnector 2012-01-11 00:09:34 +11:00
Simone Bordet 829686f1e1 Removed JDK 1.6-ism. 2012-01-09 21:51:15 +01:00
Simone Bordet 69675d4d19 365048 - jetty Http client does not send proxy authentication when requesting a Https-resource through a web-proxy. 2012-01-06 16:19:05 +01:00
Thomas Becker 2fa5a63f3c 365048: Fix proxy issue. http-client dropped authentication header on connect requests before
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2012-01-06 15:56:15 +01:00
Simone Bordet 371e998b62 367485 - HttpExchange canceled before response do not release connection. 2011-12-23 11:51:14 +01:00
Jesse McConnell 6a967ff2fe Skip two failing unit tests on mac and windows for the time being, tests
are commented on what the underlying open question is
2011-12-22 07:02:05 -06:00
Greg Wilkins b99e03c465 364921 moved setCheckForIdle handling to AsyncHttpConnection 2011-12-22 00:48:25 +11:00
Simone Bordet ef23bf11b8 Merged from origin/master. 2011-12-21 10:45:06 +01:00
Simone Bordet 744f76f6c9 Added an idle timeout test. 2011-12-21 10:34:33 +01:00
Greg Wilkins a606529710 364921 SslConnection does real close on idle if already oshut 2011-12-21 10:06:55 +11:00
Simone Bordet ecb88f836e 367175 - SSL 100% CPU spin in case of blocked write and RST. 2011-12-20 13:25:55 +01:00
Greg Wilkins b7d8bd4f28 364638 HttpParser closes if data received while seeking EOF. Tests fixed to cope 2011-12-20 10:55:56 +11:00
Greg Wilkins f7103d88f9 364638 reverted write after shutdown handling 2011-12-19 21:56:42 +11:00
Greg Wilkins b027779830 364638 check for idle after shutdown output 2011-12-19 16:53:14 +11:00
Joakim Erdfelt 44de94f185 Attempting to write a better timeout test 2011-12-16 14:45:38 -07:00
Joakim Erdfelt a5d18d48ad Attempting to get a non-ssl version of the timeout bug into a unit test 2011-12-16 14:16:32 -07:00
Simone Bordet d52ed502b0 Sketch of test for idle expiration on SSL. 2011-12-16 21:26:37 +01:00