Commit Graph

4090 Commits

Author SHA1 Message Date
Julien Viet
d034702f93 Improve HttpServerResponse failure reporting when the response is closed or ended, fix also HTTP/2 send file not reporting error correctly - fixes #3064 - fixes #3065 - fixes #3061 2019-08-13 12:17:23 +02:00
Julien Viet
b268c402ea Pipe should use the write stream acknowledged end when a result handler is expected - closes #3063 2019-08-13 11:26:57 +02:00
cpdyj
d14f832823 Future will fail when the handler which is passed to Future.future throws an Exception. (#3057)
* Future will fail on `Future.future` throws an Exception.

Signed-off-by: iseki <admin@iseki.space>

* Modify testcase and fix format.

Signed-off-by: iseki <admin@iseki.space>
2019-08-05 16:45:46 +02:00
Thomas Segismont
72f81f5b52 Race condition in NetServer connection management (#3049)
Fixes #2922

When a connection is established, a Vert.x handler is created and added to the channel pipeline.
The internal NetSocketImpl object is created only when the handler added event is fired, but it might not always happen immediately.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2019-08-05 15:10:25 +02:00
Julien Viet
f72a2078ce Call MessageConsumer discard handler asynchronously 2019-08-03 16:16:54 +02:00
Julien Viet
23b94242d5 MessageConsumer should unregister only once - see #3054 2019-08-03 16:16:44 +02:00
Julien Viet
d38eb966db Fix cookie tests failing with domain sockets 2019-08-01 12:18:23 +02:00
Julien Viet
27ad7bde67 HttpServer cookie support - see #3050 2019-08-01 11:19:26 +02:00
shenzhou-6
6ffd71f65f Support http status code 308 redirection (#3043)
* Support http status code 308 redirection

Signed-off-by: shenzhou-6 <yizmao.me@gmail.com>

* update redirection handling doc

Signed-off-by: shenzhou-6 <yizmao.me@gmail.com>

* update redirection handling doc
HTTP header / number formatting

Signed-off-by: shenzhou-6 <yizmao.me@gmail.com>
2019-07-31 09:27:01 +02:00
Julien Viet
9d3fc43adc Improve VertxOptions constants 2019-07-31 09:12:34 +02:00
Julien Ponge
8524edce81 Rename startFuture parameters to startPromise
I found this while playing with 4.0.0-milestone and my IDE completed with a wrong name.

Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-07-30 10:56:29 +02:00
Julien Viet
33db2436d9 Make available on WebSocketBase the close status code and reason - see #3047 2019-07-29 09:48:51 +02:00
Julien Viet
6a25543677 NetSocket SSL upgrade should execute the handler on the context 2019-07-27 12:20:07 +02:00
Julien Viet
dd534cdf94 Releasing 4.0.0-SNAPSHOT 2019-07-25 17:56:57 +02:00
Julien Viet
d3cfceeb50 Releasing 4.0.0-milestone1 4.0.0-milestone1 2019-07-25 15:12:34 +02:00
Julien Viet
59f9e17984 Lazy load JDK default cipher suite - fixes #3012 2019-07-15 13:08:09 +02:00
Billy Yuan
e750004270 Upgrade Jetty APLN Agent to 2.0.9
Signed-off-by: Billy Yuan <billy112487983@gmail.com>
2019-07-12 12:06:40 +02:00
Julien Viet
eacdfab1df Worker pool metrics does not correctly pass the pool metricus handback objects - this closes #3031 2019-07-12 12:01:30 +02:00
Julien Viet
a1499d2fd5 Fix FileSystem#mkdirs javadoc - fixes #3030 2019-07-12 11:26:58 +02:00
Julien Viet
2c17a9575c Make FileSystem tests explicitely complete the test 2019-07-12 11:26:50 +02:00
Julien Viet
713c1a834d Refactor HttpServer initialization in a channel initializer 2019-07-11 15:30:00 +02:00
Julien Viet
44a0a9e9d3 Make sure that the reset cause of an HttpClient timeout will always happen before the connection close (when it's needed), also make the timeout exception subclass not an inner class 2019-07-05 17:38:46 +02:00
Paulo Lopes
5413138ea4 Merge pull request #2970 from eclipse-vertx/cli-updates
CLI updates
2019-07-05 09:41:20 +02:00
Julien Viet
5f47b4a8de Revert "Allow to set an arbitrary payload on HTTP server request"
This reverts commit e9d25415d1.
2019-07-05 08:47:44 +02:00
Julien Viet
3ba5f621b4 HttpClient redirection can use any HttpClientRequest - see #3024 2019-07-04 22:57:48 +02:00
Julien Viet
dba7c8b454 Vert.x can use event loop with vanilla Netty threads - see #3023 2019-07-04 22:57:48 +02:00
Thomas Segismont
63d5ad764f Failures not reported when executeBlocking is invoked without a result handler
Fixes #3009

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2019-07-03 19:43:22 +02:00
Julien Viet
fdac684382 Fix http documentation that mentions redirection might cache body for 307 2019-07-03 09:05:29 +02:00
Julien Viet
de635a88b9 Expose WebSocket closed status - see #3020 2019-07-02 20:36:34 +02:00
Julien Viet
4e8f40b078 Isolation group classloader cleanup - this fixes #3017 2019-07-02 16:40:21 +02:00
Julien Viet
9f0b710d01 Fix regression introduced by HTTP client improvements 2019-07-02 15:02:52 +02:00
Julien Viet
e9d25415d1 Allow to set an arbitrary payload on HTTP server request 2019-07-02 14:49:08 +02:00
Julien Viet
69ae1ecbc2 HttpClient improvements - see #3014 2019-07-02 11:46:56 +02:00
Julien Viet
c78b8a14fb Test MessageProducer end/close methods with no/null handler 2019-06-28 09:09:14 +02:00
Julien Viet
af7513ee74 Remove MessageProducer send methods - this closes #3005 2019-06-27 11:54:54 +02:00
Julien Viet
8f75f291c4 Fix bug with worker executor using a tracing context 2019-06-23 10:50:27 +02:00
Julien Viet
714cdc56ec regen code 2019-06-23 10:20:13 +02:00
Julien Viet
3c9344487c Fix invalid doc 2019-06-22 12:07:55 +02:00
Julien Viet
520b98060f Validate content at JsonObject and JsonArray instantiation - this closes #3001 2019-06-22 12:02:15 +02:00
Julien Viet
f33abbeadb Travis SNAPSHOT deploy job should use OpenJDK8 2019-06-22 09:56:27 +02:00
Julien Viet
a490f9b20a Vert.x Core futurisation - this closes #2998 2019-06-21 10:09:33 +02:00
Julien Viet
3231e8edec Fix HTTP/1 client bytes written metric regression 2019-06-17 21:07:50 +02:00
Julien Viet
240169b464 EventBus request method for request-response pattern - this closes #2989 2019-06-17 16:58:57 +02:00
Julien Viet
3bc24dc0f8 Move HTTP metrics in the HTTP stream classes instead of request/response classes 2019-06-17 11:24:42 +02:00
Francesco Guardiani
d9cf8c016e Json Pointer implementation (#2898)
* Added Json Pointer implementation

Signed-off-by: slinkydeveloper <francescoguard@gmail.com>

* Fixed docs typo

Signed-off-by: slinkydeveloper <francescoguard@gmail.com>

* Added tracedQuery to JsonPointer

Signed-off-by: slinkydeveloper <francescoguard@gmail.com>

* Moved Json Pointer docs and applied some changes from code review

Signed-off-by: slinkydeveloper <francescoguard@gmail.com>

* Renamed build in toString() and buildURI in toURI()

Signed-off-by: slinkydeveloper <francescoguard@gmail.com>

* Did some doc changes

Signed-off-by: slinkydeveloper <francescoguard@gmail.com>

* Reworked the JsonPointer Javadoc

Signed-off-by: slinkydeveloper <francescoguard@gmail.com>

* Added JsonPointer#append(JsonPointer)

Signed-off-by: slinkydeveloper <francescoguard@gmail.com>

* Removed generics

Signed-off-by: slinkydeveloper <francescoguard@gmail.com>
2019-06-13 16:40:05 +02:00
Julien Viet
9742f8d696 Merge pull request #2986 from slinkydeveloper/patch-1
Update .travis.yml
2019-06-12 17:11:10 +02:00
Francesco Guardiani
783d24339e Update .travis.yml
Signed-off-by: slinkydeveloper <francescoguard@gmail.com>
2019-06-12 17:07:13 +02:00
Julien Viet
651da8a679 Promise for Vert.x - see https://github.com/vert-x3/issues/issues/469 2019-06-12 11:19:56 +02:00
Julien Viet
d4e4c7ae0f Merge pull request #2980 from eclipse-vertx/json-codec
Json codec
2019-06-05 17:53:46 +02:00
Julien Viet
812505053d Regen code 2019-06-05 17:38:19 +02:00