Commit Graph

4090 Commits

Author SHA1 Message Date
Julien Viet
8ebe3a9391 Rework ContextInternal execution 2019-03-02 18:11:56 +01:00
Julien Viet
1400a982ad Rework context worker task execution 2019-03-02 18:11:56 +01:00
Julien Viet
eba17c9681 Avoid to use ContextImpl when possible 2019-03-02 18:11:56 +01:00
Julien Viet
1b9b357579 Refactor a bit the Context/VertxThread association API 2019-03-02 18:11:56 +01:00
Julien Viet
79445bc7ab InboundBuffer should check thread directly as the Context thread association might not be set 2019-03-02 18:11:56 +01:00
Julien Viet
a1d3e76c32 Rework connection write to avoid holding a lock when writing to the channel 2019-03-02 18:11:56 +01:00
Julien Viet
7e0fa93911 Rework ConnectionBase to expose a flush operation used by handlers instead of endReadAndFlush that should exclusively be used by VertxHandler 2019-03-02 18:11:56 +01:00
Julien Viet
ed26167700 Minor refactor in HTTP tests 2019-03-02 18:11:56 +01:00
Julien Viet
ba47fac59a Use pipe instead of pump for file upload streaming to disk as it will handle terminations and errors - fixes #2865 2019-03-02 17:48:55 +01:00
Julien Viet
3598209020 Rework file upload so that NettyFileUpload is a ReadStream<Buffer> 2019-03-02 17:48:55 +01:00
Julien Viet
7f35f60fa5 Pipes should handle premature source failure correctly 2019-03-02 17:48:55 +01:00
Julien Viet
7d35b3d913 Pipes should act like the pump and assume that the drain handler might be cleared after a drain 2019-03-02 17:48:55 +01:00
Julien Viet
695ad8c352 Minor refactor in Http2ServerRequestImpl the error notification 2019-03-02 17:48:55 +01:00
Julien Viet
4bc9c35149 HTTP server file upload leaks file descriptors when empty upload streamed to file system - fixes #2859 2019-03-02 17:48:55 +01:00
Frank Rosner
0224450bbb Fix native BSD transport dependency
Signed-off-by: Frank Rosner <frank@fam-rosner.de>
2019-03-01 15:53:57 +01:00
Julien Viet
5caeb8ae5f Asynchronous handshake of a server WebSocket - see #2858 2019-03-01 10:03:36 +01:00
Julien Viet
456caa3487 Simplify a bit ServerWebSocketImpl accept/reject handling 2019-02-28 19:20:04 +01:00
Julien Viet
4366844a2e Minor doc improvements 2019-02-28 14:11:57 +01:00
Lukas Prettenthaler
a5cf43800c fix logging to system out and err (#2841)
* fix logging to system out and err

Signed-off-by: Lukas Prettenthaler <rdx@wsn.at>

* switch ise to log statement

Signed-off-by: Lukas Prettenthaler <rdx@wsn.at>
2019-02-27 21:23:30 +01:00
Julien Viet
f8af98d18a Give the test for client response resume a better name 2019-02-25 20:31:20 +01:00
Julien Viet
f50a925e0c Http1xClientConnection should end the client request only when the buffer queue is empty and the response ended 2019-02-25 20:26:22 +01:00
Julien Viet
24434e9ecf Delay the end handler notification when an stream end handler is called - see #2852 2019-02-25 18:46:42 +01:00
Julien Viet
90455f85b2 InboundBuffer should call the drain handler only during a drain call - see #2851 2019-02-25 18:46:32 +01:00
Julien Viet
ef5c3a28f4 Inbound buffer should compare strictly to the high water mark for writability - see #2850 2019-02-25 18:46:23 +01:00
Julien Viet
b16bb3923a Remove a bunch of useless metrics methods 2019-02-21 11:19:23 +01:00
Julien Viet
299d4b2ac6 Remove deprecated methods - fixes #2845 - fixes #2846 - fixes #2847 2019-02-21 10:09:59 +01:00
Julien Viet
09457f73f9 Simplify a bit AsyncFileImpl 2019-02-21 09:02:45 +01:00
Julien Viet
80fe8f5ec4 Rewrite AsyncFileImpl logic as it used to be to ease comparison / ports with 3.x branches 2019-02-21 08:51:01 +01:00
Julien Viet
94a466fc77 Revert "Rename MetricsProvider -> MetricsObject"
This reverts commit 61001582d6.
2019-02-20 09:01:33 +01:00
Julien Viet
9112f8e689 Revert "FOO"
This reverts commit 53e4dd97cc.
2019-02-20 09:01:25 +01:00
Julien Viet
56bb9621d3 Remove pooled buffer option - fixes #2746 2019-02-20 08:59:59 +01:00
Julien Viet
53e4dd97cc FOO 2019-02-19 19:24:20 +01:00
Julien Viet
61001582d6 Rename MetricsProvider -> MetricsObject 2019-02-19 19:17:03 +01:00
Julien Viet
a8d751e483 Remove equals/hashCode from options - fixes #2840 2019-02-19 09:04:39 +01:00
Julien Viet
111b9aa03a Minor: covariant override of copy() in JdkSSLEngineOptions 2019-02-18 19:18:25 +01:00
Julien Viet
10c6f90d82 SSLEngineOptions should define a copy() method instead of clone() - see #2839 2019-02-18 19:13:25 +01:00
Julien Viet
990d75a61a Cleanup in HTTP server/client options - see #2838 2019-02-18 18:56:48 +01:00
Julien Viet
a5c9c34ad2 TrustOptions and KeyCertOptions should define a copy() method instead of clone() 2019-02-16 11:56:01 +01:00
Julien Viet
621eefbf1c Stream pipe API - fixes #2792 (#2793)
* Pipe API

* Rename Pipe#end to Pipe#endOnComplete

* Doc

* Add a pipe close operation to release a pipe prematurely

* Remove pump example

* Minor doc

* Add a note that the pipe API supersedes the pump API

* Pipe on end behavior example

* Doc improvement

* Add IMPORTANT admonition about the pump API
2019-02-11 12:46:33 +01:00
Julien Viet
3065a1892f HttpClient pool does check progress after connections are evicted on idle timeout - fixes #2820 2019-02-03 16:29:40 +01:00
Thomas Segismont
4a8bf7fc90 Fixes #2813 MessageConsumer delivers more items than requested in fetch mode
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2019-01-30 10:37:51 +01:00
Julien Viet
b25a952be5 Use correct logger in HttpClientRequestImpl 2019-01-23 23:42:48 +01:00
Julien Viet
e9c83b9593 HTTP2 request/response exception handler should not be called when response is ended. https://github.com/eclipse-vertx/vert.x/issues/2803 2019-01-23 23:17:59 +01:00
Julien Viet
83d40585df Document that executeBlocking should not be used for long blocking operations - fixes #2801 2019-01-21 08:29:06 +01:00
Kowalczyk
7112b850c2 This is a combination of 2 commits.
Provide fix and test for #2790

Signed-off-by: Kowalczyk <bkowalczyyk@gmail.com>

Signed-off-by: Kowalczyk <bkowalczyyk@gmail.com>
2019-01-14 14:11:50 +01:00
Julien Viet
f68ae15171 HttpServer handles incorrectly pipelined server response with sendFile - fixes #2795 2019-01-09 09:12:19 +01:00
Julien Viet
d008306461 HttpServer closes the connection prematurely when sending a large file with HTTP/1.1 without keep-alive - fixes #2794 2019-01-09 09:07:31 +01:00
Thomas Segismont
f650f1ff8e Deprecate logging API (#2775)
Fixes #2774

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2019-01-08 23:28:17 +01:00
Andre Dietisheim
3acdba4a48 [issue-2655] implemented AsyncFile#setReadLength and tests
Signed-off-by: Andre Dietisheim <adietish@redhat.com>
2019-01-08 17:45:53 +01:00
Julien Viet
5d25b25b64 HttpClient pool improvements - fixes #2787 - fixes #2773 2019-01-07 17:18:51 +01:00