Commit Graph

4247 Commits

Author SHA1 Message Date
Paulo Lopes
458993255e Adds all RFC listed verbs to the interface 2020-01-10 15:58:45 +01:00
Paulo Lopes
7d73eb1819 Fix broken test 2020-01-10 13:37:30 +01:00
Julien Viet
d3ba036bf0 HttpMethod is an interface - closes #3246 2020-01-07 15:57:02 +01:00
Julien Ponge
5c1354f3bb Merge pull request #3226 from jponge/cs-interop
CompletionStage interoperability
2020-01-07 11:59:15 +01:00
Julien Ponge
9c6fcc41c4 Rename from to fromCompletionStage
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2020-01-07 10:33:50 +01:00
Julien Ponge
f9547d2e07 Just use await with default timeouts
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2020-01-07 10:29:08 +01:00
Thomas Segismont
8f576a56d3 Merge pull request #3244 from tsegismont/context-timer
Expose setTimer and setPeriodic on ContextInternal
2020-01-07 10:16:29 +01:00
Thomas Segismont
b0730b2fe8 Update Javadoc
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-01-07 10:10:27 +01:00
Thomas Segismont
087a5ceef8 Don't expose scheduleTimeout on VertxInternal
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-01-07 10:07:06 +01:00
Julien Viet
be7c45466a Add cacheDirname to exception to help troubleshoot issue 2020-01-07 09:54:45 +01:00
Thomas Segismont
585947d9b6 Expose setTimer and setPeriodic on ContextInternal
This can simplify when a component is bound to a context and we have to schedules async tasks

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-01-06 18:23:15 +01:00
Julien Viet
5a585a1a62 WebSocket API cleanup - closes #3235 2019-12-18 14:11:15 +01:00
Julien Ponge
b03a57e7ff Improved "from" example with a flatMap
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-16 18:24:31 +01:00
Julien Ponge
5d61c83a3b Flag which "from" method to prefer
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-16 18:24:12 +01:00
Julien Viet
cf6c864a2a Vertx#close Future will not callback the handler - closes #3232 2019-12-16 16:26:14 +01:00
Julien Viet
2b78689ad3 Replace the current VertxFactory SPI with an internal factory that enable overriding of Vertx SPI services in a single class. 2019-12-16 14:50:24 +01:00
Paulo Lopes
cce0f1ae27 Merge pull request #3228 from eclipse-vertx/issues/3227
Fixes #3227
2019-12-16 14:22:06 +01:00
Julien Ponge
edcdf3b05b Documentation + examples of the CS interop
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-16 12:33:24 +01:00
Julien Viet
ff7f5c07f0 Bunch of minor improvements and renaming 2019-12-16 09:40:45 +01:00
Paulo Lopes
cfc9fe020a Fixes #3227 2019-12-13 10:43:39 +01:00
Julien Ponge
3be4d274e5 Update src/main/java/io/vertx/core/Future.java
Co-Authored-By: Thomas Segismont <tsegismont@gmail.com>
2019-12-12 17:19:25 +01:00
Julien Ponge
a698e86cfa Reformating
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 17:17:45 +01:00
Julien Ponge
260fed69b1 Javadocs
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 16:44:03 +01:00
Julien Ponge
0711b2b45e Future from CompletionStage dispatch to Vert.x context
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 15:47:06 +01:00
Julien Ponge
7ed8f95af9 Future from CompletionStage trampolining
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 15:39:41 +01:00
Julien Ponge
9cdd059800 CompletionStage delayed completion test
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 11:27:35 +01:00
Julien Ponge
81f35814da CompletionStage trampolining test
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 11:18:34 +01:00
Julien Ponge
48561de730 CompletionStage interop methods
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 10:49:59 +01:00
Julien Viet
14193583ba Remove irrelevant test 2019-12-10 22:56:13 +01:00
Julien Viet
b5b729a1ad Fix test to be non racy anymore and remove irrelevant tests 2019-12-10 22:33:35 +01:00
Julien Viet
64707cb564 Remove usage of dispatchFromIO 2019-12-10 22:33:35 +01:00
Julien Viet
ee78178233 Improve context dispatch implementation and wiring with HTTP services 2019-12-10 22:33:35 +01:00
codepitbull
2f531a7618 Added application/wasm mimetype 2019-12-09 08:06:44 +01:00
Julien Viet
f06a720c86 Update tests that now became racy 2019-12-06 16:00:50 +01:00
Julien Viet
a50dd79d4f Releasing 4.0.0-SNAPSHOT 2019-12-06 15:10:11 +01:00
Julien Viet
6949cd26a6 Releasing 4.0.0-milestone4 4.0.0-milestone4 2019-12-06 14:34:23 +01:00
Paulo Lopes
047dde2470 Code changed to solve the JSON RFCs (#3197)
* Code changed to solve the JSON RFCs

Signed-off-by: Paulo Lopes <pmlopes@gmail.com>

* remove check for String

Signed-off-by: Paulo Lopes <pmlopes@gmail.com>

* Ensure that array remove can work with unwrapped values too.

Signed-off-by: Paulo Lopes <pmlopes@gmail.com>

* Use system encoder

* Silently cast to String

Signed-off-by: Paulo Lopes <pmlopes@gmail.com>

* avoid encode during copy

Signed-off-by: Paulo Lopes <pmlopes@gmail.com>

* test byte[] and instant are not serialized internally

* Revert "Silently cast to String"

This reverts commit f35876b7

Signed-off-by: Paulo Lopes <pmlopes@gmail.com>
2019-12-06 14:15:45 +01:00
Julien Viet
19ea967a98 Change HTTP/1 outbound back-pressure to use eventual consistency to avoid race on missed signals: currently the HTTP/1 client request and server response use the TCP socket writability directly. As now a connection might use message passing with its streams, this can result in a missed back-pressure signal or an inacurate back-pressure measurement, e.b writeQueueFull() might return a wrong value or a drain handler might not be called. Now each stream maintain its writability flag and will update it when the connection writability changes so the stream will always show the most recent value on this stream resulting in a loss of signal misses. 2019-12-06 13:56:41 +01:00
Julien Viet
960276c3c8 Create HTTP/1 stream on event loop 2019-12-06 12:53:55 +01:00
Julien Viet
2f6faf8cf3 Remove unused field 2019-12-06 12:44:52 +01:00
Julien Viet
ab1464c8df Improve Http1xTest#testContexts that will now overrun the client connection with buffers 2019-12-06 01:06:15 +01:00
Paulo Lopes
73f46c0097 Avoid eventbus npe on verticle factories (#3206)
* Avoid eventbus npe on verticle factories

Signed-off-by: Paulo Lopes <pmlopes@gmail.com>

* Added a regression test that asserts that eventbus and shared data are not null at factory init.

Signed-off-by: Paulo Lopes <pmlopes@gmail.com>
2019-12-05 15:55:52 +01:00
Julien Viet
d663a5c7fb Make sure that all HTTP/1 client connection writes are serialized without reordering due to back-pressure 2019-12-05 14:28:29 +01:00
Julien Viet
24368ac06e Remove FileStreamChannel that is not used anymore 2019-12-04 23:48:02 +01:00
Julien Viet
3be3ce6a79 Improve HTTP/1 metrics reporting 2019-12-04 20:01:30 +01:00
Julien Viet
3eb8e765cf Rename HttpServerRequestImpl -> Http1xServerRequest and HttpServerResponseImpl -> Http1xServerResponse 2019-12-04 16:17:57 +01:00
Julien Viet
a1b8c283c9 Improve racy Http2ClientTest#testStreamPriorityNoChange and disable it because it cannot reliably pass for now 2019-12-04 16:17:57 +01:00
Julien Viet
2b5a3c94a8 HttpClientRequest#end(Handler) might not callback the handler 2019-12-04 14:33:27 +01:00
Julien Viet
f32b26bb26 Improve HttpMetricsTestBase#testHttpClientLifecycle 2019-12-04 13:58:22 +01:00
Julien Viet
5878f6f866 Fixing race test and race code for HttpClient request reset 2019-12-04 12:24:04 +01:00