Julien Viet
a295087643
Minor improvements
2019-06-05 17:38:07 +02:00
slinkydeveloper
9da08b8eb5
Moved JsonCodec interfaces to io.vertx.core.spi.json
...
Signed-off-by: slinkydeveloper <francescoguard@gmail.com >
2019-06-05 17:00:43 +02:00
slinkydeveloper
c1fa1a85db
Added small documentation about the codecs
...
Signed-off-by: slinkydeveloper <francescoguard@gmail.com >
2019-06-05 17:00:43 +02:00
slinkydeveloper
680d286f4b
Made JsonCodecLoader as singleton
...
Signed-off-by: slinkydeveloper <francescoguard@gmail.com >
2019-06-05 17:00:43 +02:00
slinkydeveloper
3d69c9c64d
Updated JsonCodecLoader to new restrictions of JsonCodec
...
Signed-off-by: slinkydeveloper <francescoguard@gmail.com >
2019-06-05 17:00:43 +02:00
slinkydeveloper
3062540c5d
Fixed JsonCodecLoader to manage wrong types
...
Signed-off-by: slinkydeveloper <francescoguard@gmail.com >
2019-06-05 17:00:43 +02:00
slinkydeveloper
5b83683c7d
JsonCodecLoader experiment
...
Signed-off-by: slinkydeveloper <francescoguard@gmail.com >
2019-06-05 17:00:43 +02:00
slinkydeveloper
49f341609c
Added JsonCodec new interfaces
...
Signed-off-by: slinkydeveloper <francescoguard@gmail.com >
2019-06-05 17:00:43 +02:00
Paulo Lopes
e97a39303c
Avoid doing reflection to parse well known types (boxed primitives)
...
Signed-off-by: Paulo Lopes <pmlopes@gmail.com >
2019-05-28 15:45:37 +02:00
Paulo Lopes
7c9589fda7
CLI updates
...
Signed-off-by: Paulo Lopes <pmlopes@gmail.com >
2019-05-28 13:33:11 +02:00
Julien Viet
d9bfe3ed98
NetSocket upgrade to SSL asynchrony fix. This closes #2962
2019-05-21 15:04:50 +02:00
Billy Yuan
5dd4de7dc8
Expose netty's SSL Handshake Timeout ( #2961 )
...
* Add support for setting SSL handshake timeout in NetClient & NetServer
Signed-off-by: Billy Yuan <billy112487983@gmail.com >
* Apply SSL handshake timeout in socket upgradeSsl
Signed-off-by: Billy Yuan <billy112487983@gmail.com >
* Improve the SSL handshake timeout tests
Signed-off-by: Billy Yuan <billy112487983@gmail.com >
* minor tests
Signed-off-by: Billy Yuan <billy112487983@gmail.com >
* several changes for SSL handshake timeout
1. Add support for SSL handshake timeout time unit
2. Apply SSL handshake timeout options in EventBus/HttpClient/HttpServer
3. minor tests
Signed-off-by: Billy Yuan <billy112487983@gmail.com >
* minor tests
Signed-off-by: Billy Yuan <billy112487983@gmail.com >
2019-05-21 14:53:57 +02:00
Julien Viet
11f52fc973
Implement HttpClient#webSocket(..., Handler<AsyncResult<WebSocket>>) methods as well as WebSocketConnectOptions to keep the overloading of the webSocket method reasonnable. In addition we also add headers support to RequestOptions so one can specify headers when create an HttpClientRequest or a WebSocket from options. Finally the previous HttpClient WebSocket connect methods are deprecated in favor of the new ones.
2019-05-19 20:56:09 +02:00
Julien Viet
645f6d4d41
Add WriteStream asynchronous write and end methods
2019-05-14 12:10:05 +02:00
Julien Viet
091de1c903
Do not expose HTTP/2 pseudo headers in header maps - fixes #2941
2019-05-11 12:49:16 +02:00
Julien Viet
a17f9906d2
fix Http1xTest
2019-05-08 15:39:40 -04:00
Julien Viet
5e69014501
Improve MetricsTest#testClusterUnregistration
2019-05-08 11:50:17 -04:00
Julien Viet
2bbc335dda
Remove system.out println
2019-05-08 08:08:11 -04:00
Julien Viet
6f55322df7
Add a test to ensure how the request exception handler is used when the client request is already ended
2019-05-08 08:07:48 -04:00
Julien Viet
0c366c301c
Don't handle 100 continue automatically by default in tests
2019-05-08 07:52:53 -04:00
Julien Viet
7d27675690
HttpClient does not fire HttpClientRequest exception handler after receiving a 100 continue response - fixes #2936 - fixes #2910
2019-05-08 07:25:14 -04:00
shenzhou-6
60d92270cf
#2920 HttpContentDecompressor Compression level becomes more lenient fashion ( #2924 )
...
* HttpContentDecompressor Compression level becomes more lenient fashion
Signed-off-by: shenzhou-6 <yizmao.me@gmail.com >
* HttpClient and HttpServer compression level becomes more lenient fashion
Signed-off-by: shenzhou-6 <yizmao.me@gmail.com >
* add test httpserver decompression behavior
Signed-off-by: shenzhou-6 <yizmao.me@gmail.com >
2019-05-06 06:40:37 +02:00
Julien Viet
cbac01695f
FutureImpl do not need to implement Handler<AsyncResult<T>> as it is inherited from Future<T>
2019-05-06 06:36:45 +02:00
Julien Viet
08ff631f63
More connection pool improvement
2019-05-03 12:27:24 +02:00
Julien Viet
49d4426a28
Remove test repeatition
2019-05-03 11:24:05 +02:00
Julien Viet
0691d9da31
Improve ConnectionPoolTest#testCloseRecycledConnection
2019-05-03 11:10:29 +02:00
Julien Viet
f97f492d05
Improve Http1xTest#testCloseTheConnectionAfterResetBeforeResponseReceived reliability
2019-05-03 10:49:09 +02:00
Julien Viet
a67f8ead3b
Rework a bit ConnectionPool eviction
2019-05-03 10:02:59 +02:00
Julien Viet
d8f3f4d0d9
ConnectionPool should evict unused connection as a progress task - fixes #2930
2019-05-03 09:46:10 +02:00
Julien Viet
8b8e4c56eb
In NetTest#testIdleTimeoutSendChunkedFile remaining bytes should only be set in client end handler
2019-05-02 18:38:38 +02:00
Julien Viet
277ffee21a
Improve NetTest#testIdleTimeoutSendChunkedFile that fails sometimes with native transports due to connection reset
2019-05-02 18:09:28 +02:00
Julien Viet
1e8c42723a
Improve ComplexHATest reliability
2019-05-02 16:34:12 +02:00
Julien Viet
f38c2ec3a7
Support domain socket for HTTP client
2019-05-01 20:51:35 +02:00
Julien Viet
64ee027d14
Move HTTP proxy tests in a separate class
2019-05-01 20:51:35 +02:00
Julien Viet
1a7af0ca00
Upgrade to Netty 4.1.34.Final
2019-04-23 11:19:41 +02:00
Julien Viet
614db394f4
Remove the atomic boolean usage in Vertx internal timer that was used in a racy manner, instead use the existing timeouts map and rely on the timeouts map removal to grant ownership of the timer termination (cancellation or timeout). - fixes #2912
2019-04-18 15:03:31 +02:00
Julien Viet
74656a0cc1
Remove duplicated code
2019-04-17 12:10:33 +02:00
Julien Viet
25c1d41370
HTTP event handler should not be called when holding a lock and signal end of stream using a sentinel. Fixes #2915 - Fixes #2916
2019-04-17 11:50:24 +02:00
Julien Viet
630346b0b7
Refactor HTTP connection WebSocket so common state and code is shared within Http1xConnectionBase
2019-04-16 13:36:07 +02:00
Julien Viet
cc760e74f0
Minor test improvement
2019-04-16 10:57:23 +02:00
Julien Viet
edc03d5f64
Avoid holding lock in ConnectionBase#writeToChannel - see #2907
2019-04-16 10:48:25 +02:00
Julien Viet
c3d1bb3571
Improve MetricsTest#testClusterUnregistration to remove racy assertion
2019-04-15 23:37:17 +02:00
Julien Viet
9d3693735b
Since now the MessageConsumer handler is set to null during unregistration we should check nullity when processing message to avoid NPE when processing messages that are delivered after unregistration
2019-04-15 17:40:44 +02:00
Julien Viet
38b8b75db2
Make the CheckingSender used in tests less GC aggressive
2019-04-15 14:29:13 +02:00
Julien Viet
840644c541
Rework test case so that the pass does not have // and work on OSX
2019-04-12 17:06:35 +02:00
Julien Viet
4008c1f33e
HttpServerRequest fetch does not call the end handler when the request is empty - fixes #2904
2019-04-12 11:10:23 +02:00
Julien Viet
a392dc8ea6
Move event bus metrics unregistration to HandlerRegistration instead of HandlerHolder - fixes #2900
2019-04-08 17:04:09 +02:00
Julien Viet
6d33b93623
Event bus consumer racy cluster registration - fixes #2899
2019-04-08 17:04:09 +02:00
Julien Viet
ed9db2e60a
Set the MessageConsumer handler to null during unregistration
2019-04-08 17:03:54 +02:00
Julien Viet
fd7bf15f34
Minor fix in DeploymentTest
2019-03-27 12:31:29 +01:00