12296 Commits

Author SHA1 Message Date
Simone Bordet
64644183a8 Renamed test class. 2016-08-17 21:40:23 +02:00
Simone Bordet
00a065b064 Fixes #855 - JMXify MBeanContainer. 2016-08-17 21:28:19 +02:00
Simone Bordet
fe038c5a87 Fixes #851 - MBeanContainer no longer unregisters MBeans when "stopped".
MBeanContainer now implements Destroyable, so calling Server.destroy()
unregisters the MBeans.
2016-08-17 21:28:19 +02:00
Joakim Erdfelt
988e34489b Merge branch 'jetty-9.2.x' into jetty-9.3.x 2016-08-16 06:29:58 -07:00
Joakim Erdfelt
526d1415a4 Ignoring flappy test 2016-08-16 06:29:41 -07:00
Joakim Erdfelt
4527ba1801 Merge branch 'jetty-9.2.x' into jetty-9.3.x 2016-08-15 15:22:53 -07:00
Joakim Erdfelt
36ac693385 Some Jenkinsfile cleanup 2016-08-15 15:18:18 -07:00
Joakim Erdfelt
78544b999b Adding email on stage failure 2016-08-15 13:37:38 -07:00
Greg Wilkins
94c1424029 Issue #841 support reset in buffering interceptors
Added resetBuffers to the output interceptor.
2016-08-15 19:38:18 +10:00
Simone Bordet
11bc5cce66 Fixes #839 - Test Failure: MaxConcurrentStreamsTest.testOneConcurrentStream().
Fixed race condition where the prime request response was arriving to
the client before the server had finished to clean up and remove the
prime stream. Subsequent client requests were rejected because the
prime stream was still "alive".
2016-08-14 23:25:03 +02:00
Simone Bordet
efc5265fe5 Improved javadocs. 2016-08-14 12:17:35 +02:00
Simone Bordet
ea20a5f2ef Fixes #836 - Test Failure: HttpClientTransportOverHTTP2Test.testLastStreamId()
Fixed race condition: the completion was happening before the stream
promise for the request was succeeded.
2016-08-12 17:10:43 +02:00
Simone Bordet
9f9e9ecaf9 Changes for Issue #824 (#825)
* Issue #824 - Implement notifications of asynchronous error conditions for HTTP/2.

Introduced new method HttpChannelState.asyncError() to be called in
case of asynchronous errors, i.e. those errors that do not happen in
the HttpChannel.handle() loop.

Implemented HTTP/2 callbacks to call HttpChannelState.asyncError()
and plug in the existing error handling mechanism.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>

* Issue #824 - Implement notifications of asynchronous error conditions for HTTP/2.

Improved implementation to ignore idle timeouts for streams and
session in case that requests are being handled, matching the HTTP/1.1
behavior.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2016-08-12 11:02:52 +02:00
Greg Wilkins
46cdeca543 Use dynamic ports for OSGi tests 2016-08-12 14:06:14 +10:00
Jan Bartel
56aaf6d1be Issue #700 add osgi ServiceLoader headers to jetty-http-spi 2016-08-12 11:46:04 +10:00
Greg Wilkins
5fefd5d8bd Issue #185 Implement RFC 7239
Improved test harness
Added more configurability
Fixed SSL session and certificate bugs
2016-08-12 11:39:36 +10:00
Greg Wilkins
5c9a637d4f UnitTest #833 2016-08-12 10:29:38 +10:00
Simone Bordet
7041e5102d Fixes #827 - HTTPClient fails connecting to HTTPS host through an HTTP proxy w/authentication.
Using https scheme in CONNECT request if the proxy is secure.
A Proxy must not match its own address.
Resolved correctly request URI in case of CONNECT requests.
2016-08-11 19:25:41 +02:00
Greg Wilkins
b45af1a3c9 Issue #185 Implement RFC 7239
Also handle legacy Https headers for #834
2016-08-11 18:56:51 +10:00
Jan Bartel
c033a3734b Issue #783
Add loggable exception; remove unused code
2016-08-11 08:15:45 +10:00
Jan Bartel
5ef8d50bfb Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x 2016-08-11 07:52:40 +10:00
Jan Bartel
4b8e4707db Issue #832 2016-08-11 07:51:10 +10:00
Simone Bordet
2eec2251ee Fixes #827 - HTTPClient fails connecting to HTTPS host through an HTTP proxy w/authentication.
Only successful (200) responses to a CONNECT behave like HEAD and
implicitly have no body.
2016-08-10 18:36:27 +02:00
Jesse McConnell
1bff5c0d6a Merge pull request #823 from WalkerWatch/docupdates/Cleanup
Doc flow cleanup.
2016-08-10 09:58:39 -05:00
Jesse McConnell
ffae6fe2a4 Merge pull request #818 from WalkerWatch/docupdates/JettyHandlers
Updates for Jetty Handlers.
2016-08-10 09:57:52 -05:00
Jan Bartel
5aac143523 Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x 2016-08-10 17:08:42 +10:00
Jan Bartel
0f7cb5e815 Issue #830 2016-08-10 16:52:31 +10:00
Greg Wilkins
f493e0f528 remove println 2016-08-10 16:26:43 +10:00
Greg Wilkins
cc8c3590c0 Issue #786 Buffering Response Handler
Fixed commit of empty buffers
2016-08-10 16:01:56 +10:00
Jan Bartel
a9653e2f49 Issue #797
Use MimeTypes.class.getClassLoader to load properties.
2016-08-10 12:07:29 +10:00
John Gardiner Myers
c1694ba9c3 Add protected HttpClientTransportOverHTTP2.getHttpClient() accessor
Signed-off-by: John Gardiner Myers <jgmyers@proofpoint.com>
2016-08-09 22:45:54 +02:00
Simone Bordet
5073ba4787 Fixes #826 - Better default for HTTP/2's max concurrent streams.
Defaulted to 128 max concurrent streams.
2016-08-09 16:02:34 +02:00
WalkerWatch
ed3168a57b Doc flow cleanup.
Signed-off-by: WalkerWatch <ctwalker@gmail.com>
2016-08-08 17:09:57 -04:00
Simone Bordet
45695e08aa Fixes #792 - [HTTP/2] Socket seems to be not closed completely.
Now sending the GOAWAY and then disconnecting from doStop(), ensuring
that the underlying TCP connection is closed even if the server does
not close.
2016-08-06 12:31:20 +02:00
Simone Bordet
92c7b991d8 Code cleanups. 2016-08-06 12:31:20 +02:00
WalkerWatch
c8036e540f Updates for Jetty Handlers.
Signed-off-by: WalkerWatch <ctwalker@gmail.com>
2016-08-05 14:04:11 -04:00
Jan Bartel
0ec64ee2a3 Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x 2016-08-05 18:25:13 +10:00
Jan Bartel
6f643d6982 Issue #817 2016-08-05 18:12:24 +10:00
Greg Wilkins
84efe1e438 increased test idletimeout 2016-08-05 14:11:30 +10:00
Andriy Rosa
1d968ef53a HttpOtput: fix async write for heap ByteBuffer (#811)
* Remove unused imports

Signed-off-by: arhimondr <andriyrosa@gmail.com>

* Improve HttpOtputTest

HttpOutputTest gives false positive results for couple of tests
(testAsyncWriteBufferLargeHEAD, testAsyncWriteBufferLarge). This happens
because only the tail of the response is being checked, and that fact that
the beginning of the response in not being sent is ignored.

For regular encoding responses it is easy to check that the entire content is
received by checking it with `response.endWith(expectedContent)`. However
for chunked responses extra parsing is required to check the content in such way.
For the sake of code simplicity only start and end of the response is being checked
for the chunked encoded responses.

Signed-off-by: arhimondr <andriyrosa@gmail.com>

* Add testAsyncWriteBufferLargeDirect test to HttpOutputTest

Just to verify that everything is right when sending native buffers
asynchronously instead of heap ones.

Signed-off-by: arhimondr <andriyrosa@gmail.com>

* HttpOtput: fix async write for heap ByteBuffer

Fix bug when asynchronous writes of Heap ByteBuffer were ignored.

ByteBuffer position was moved to the end in the constructor,
then in the `process` method `if (_buffer.hasRemaining())` condition
was always evaluated to `false` and the actual write was not performed.

Add assertion in `HttpOutputTest` to verify that after the asynchronous
write position of the buffer is always at the end.

Signed-off-by: arhimondr <andriyrosa@gmail.com>
2016-08-05 08:51:10 +10:00
Greg Wilkins
5cb50e5f5d ignore PathResource test 2016-08-04 14:02:16 +10:00
Greg Wilkins
12804a16f5 Fixed git issue references 2016-08-04 11:02:39 +10:00
Jesse McConnell
4bf885cedd Issue #56 - address users issues with ldap login 2016-08-03 16:59:17 -05:00
Jan Bartel
4b920622d5 Issue #797 2016-08-03 18:33:53 +10:00
Greg Wilkins
d57a11668d Issue #798 Sporadic async IO failure 2016-08-03 17:22:31 +10:00
Greg Wilkins
a1885afff8 fix #804 by removing old javadoc reference to org.eclipse.jetty.util.URI.charset 2016-08-03 09:17:15 +10:00
Jesse McConnell
131be3894b Merge pull request #800 from WalkerWatch/docupdate/JettyandMaven
Jetty and Maven updates.
2016-08-02 14:47:33 -05:00
Greg Wilkins
c07d383e5f Fixed comment in issue #782 2016-08-02 16:16:41 +10:00
Greg Wilkins
83483e1f69 Response.reset does not clear session cookie #789
Added unit test
2016-08-02 13:49:05 +10:00
Greg Wilkins
53a1b8f995 OSGI MimeTypes resource #797
Pass MimeTypes.class as the classloader source.  
No unit test to confirm the fix.
2016-08-02 12:48:50 +10:00