Commit Graph

4295 Commits

Author SHA1 Message Date
Julien Viet
5718be7f46 When Vert.x is closed return a context less future 2020-02-13 16:33:48 +01:00
Julien Viet
d1b48e6557 Remove fromMap method taht should not be in the generated options 2020-02-12 15:44:24 +01:00
Julien Viet
339c27b9b4 Add missing deployment options from/to JSON for JDK8 2020-02-12 15:43:01 +01:00
Thomas Segismont
f8f44b1d67 Merge pull request #3278 from tsegismont/completed-futures-context
Completed futures should operate on provided context
2020-02-10 09:49:41 +01:00
Thomas Segismont
1b9c164730 Added context thread checks
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-02-08 07:21:41 +01:00
Thomas Segismont
52cb285d46 Completed futures should operate on provided context
SucceededFuture and FailedFuture, like other futures, take a context as constructor param.
If not null, this context should be used to dispatch the execution of future handlers.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-02-06 18:19:53 +01:00
Julien Viet
3eda787971 Isolated deployment for Java 8 only (#3275)
* Isolated deployment becomes a feature exclusive to Java 8 thanks to Multi-Release Jar support. The DeploymentOptions fields are deprecated and documented to be removed when used with Java 11 or above. The documentation is removed. - closes #3274

* Feedback from review
2020-02-05 17:11:11 +01:00
Julien Viet
466cf3c1ce Simplify EventBusMetrics message delivery callback - closes #3277 2020-02-05 09:04:51 +01:00
Julien Viet
246be69028 Remove VerticleFactory identifier resolution as a verticle factory implementation can simply redeploy a verticle instead of trying to morph it. 2020-02-03 23:34:00 +01:00
Julien Viet
d5a0990e07 VerticleManager should not use the number of deployed instances to close an IsolatedClassLoader. Instead it should care of the associated Deployment life cycle 2020-02-03 14:25:33 +01:00
Julien Viet
42c627e7ac NetSocket data handler should report runtime failures to context exception handler - see #3272 2020-02-02 21:52:41 +01:00
Julien Viet
3e015d6e0d Move HTTP headers implementations to the io.vertx.core.http.impl.headers package - fixes #3269 2020-01-30 10:57:34 +01:00
Julien Viet
474577e10e Move random MultiMap creation to TestUtils 2020-01-30 10:22:56 +01:00
Julien Viet
df59247516 Avoid using CaseInsensitiveMultiMap directly 2020-01-30 10:00:54 +01:00
Julien Viet
67011f027b Update MultiMap contract and implementations so the setting a null value removes the entry from the MultiMap. Tests have been cleaned up and extended so that all MultiMap implementations are equally tested. - closes #3267 2020-01-29 18:44:11 +01:00
Julien Viet
93645d9758 fix issues 2020-01-29 18:16:39 +01:00
Julien Viet
ce671542d2 Use the domain socket path instead of "localhost" for building the shared server map key when binding an HTTP server - see #3218 2020-01-29 14:24:01 +01:00
Julien Viet
10a540b585 Improve MetricsTest 2020-01-29 12:11:08 +01:00
Julien Viet
3f6628b9bb JsonParser should return null instead of JsonToken.NOT_AVAILABLE to avoid triggering a false error 2020-01-29 12:11:08 +01:00
Julien Viet
abaea60a9e Fix incorrect JsonObject retrieval from server that broke test after JsonObject parser fix 2020-01-29 11:38:00 +01:00
Thomas Segismont
86d5b6a718 Added test for worker starvation when lock concurrency is greater than worker pool size (#3264)
See #3126

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-01-29 11:09:37 +01:00
Julien Viet
2add4436dd Parsing a JSON value should fail when there is extra content in the parsed input - see #3260 2020-01-29 09:53:32 +01:00
Julien Viet
8b05bb9e61 Enhance the SocketAddress API and avoid name resolution when providing an IP host for server bind operations - fixes #3265 - fixes #3266 2020-01-28 19:18:52 +01:00
Julien Viet
4d336085fe Vert.x transport should gracefully handle unresolved socket address conversion - fixes #3261 2020-01-22 18:08:46 +01:00
Julien Viet
6066dbe1b4 Set of improvements to HTTP/2 stream event dispatch and writability accounting 2020-01-21 11:47:58 +01:00
Julien Viet
18f3e379b4 Do not execute testHttpServerWithIdleTimeoutSendChunkedFile with native transports 2020-01-21 10:24:10 +01:00
Julien Viet
55d8e57c98 Remove temporary test 2020-01-21 09:22:09 +01:00
Julien Viet
445663f881 HttpClient improvements - fixes #3258 2020-01-21 09:00:17 +01:00
Julien Viet
db4dca16f0 Fix mutual static references between HttpMethod and HttpMethodImpl 2020-01-20 10:49:38 +01:00
Julien Viet
a5b2fa5434 Add HttpMethod.values() returning an un-modifiable list of HTTP methods known by the declaring interface 2020-01-20 10:40:20 +01:00
Thomas Segismont
46eaf41f8b Removed leftover file 2020-01-16 14:01:14 +01:00
Julien Viet
d38bef21be Remove obsolete overrides 2020-01-15 10:38:01 +01:00
Julien Viet
7c4a469032 Remove unnecessary overrides in HttpClientRequestPushPromise 2020-01-15 10:23:14 +01:00
Francesco Guardiani
0b906f8b38 Fix https://github.com/eclipse-vertx/vert.x/issues/3254 (#3255)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-01-14 09:28:48 +01:00
Paulo Lopes
48efae6db8 Merge pull request #3252 from eclipse-vertx/missing-methods-from-rfcs
Missing methods from rfcs
2020-01-10 16:18:12 +01:00
Paulo Lopes
dbf2013462 Merge pull request #3247 from eclipse-vertx/http-method-interface
HttpMethod is an interface
2020-01-10 16:17:52 +01:00
Paulo Lopes
69785131e5 Merge pull request #3223 from eclipse-vertx/issues/json-next-step
Allow Shareable on JSON copy + Autocast getString()
2020-01-10 16:16:58 +01:00
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
Paulo Lopes
b0ce2a9bae Added more checks 2020-01-10 13:13:32 +01:00
Duo Zhang
a24efdb5e9 Fix a typo in the javadoc for HttpConnection.localAddress
Signed-off-by: Duo Zhang <palomino219@gmail.com>
2020-01-10 10:23:13 +01:00
Julien Viet
9b4e105d5e CompositeFuture now delegates handler management to a Promise<CompositeFuture> in order to benefit from multiple handler support built-in Promise. 2020-01-09 17:52:36 +01:00
Thomas Segismont
950b1b96be Fully @GenIgnore CompletionStage interop methods
Otherwise it breaks Rx generation and there's no real interest in these methods there.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-01-09 17:16:35 +01:00
Julien Viet
97ea217dca Use the internal logger 2020-01-09 11:52:02 +01:00
Julien Viet
8828632053 Check NetSocket worker execution in buffer handler 2020-01-08 17:03:35 +01:00
Julien Viet
42a2df55bf NetSocket end message should be dispatched correctly on the context 2020-01-08 17:01:36 +01:00
Julien Viet
9fbc39be43 Add a test to ensure that closing an HTTP connection within the server connection handler will not call the request handler 2020-01-08 16:53:04 +01:00
Julien Viet
3b685e70b3 Connection should not process messages when in closed state - see #3249 2020-01-08 16:52:58 +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