You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: Currently, Vert.x will not attempt to reconnect if a connection fails, reconnect attempts and interval
292
292
only apply to creating initial connections.
@@ -377,7 +377,7 @@ You should read the <<netty-logging>> section.
377
377
378
378
TCP server (Net/Http) can be configured with traffic shaping options to enable bandwidth limiting. Both inbound and outbound
379
379
bandwidth can be limited through {@link io.vertx.core.net.TrafficShapingOptions}. For NetServer, traffic shaping options can be set
380
-
through {@link io.vertx.core.net.NetServerOptions} and for HttpServer it can be set through {@link io.vertx.core.http.HttpServerOptions}.
380
+
through {@link io.vertx.core.net.TcpServerConfig} and for HttpServer it can be set through {@link io.vertx.core.http.HttpServerOptions}.
381
381
382
382
[source,$lang]
383
383
----
@@ -408,12 +408,12 @@ TCP clients and servers can be configured to use http://en.wikipedia.org/wiki/Tr
408
408
- earlier versions of TLS were known as SSL.
409
409
410
410
The APIs of the servers and clients are identical whether SSL/TLS is used, and it's enabled by configuring
411
-
the {@link io.vertx.core.net.NetClientOptions} or {@link io.vertx.core.net.NetServerOptions} instances used
411
+
the {@link io.vertx.core.net.TcpClientConfig} or {@link io.vertx.core.net.TcpServerConfig} instances used
412
412
to create the servers or clients.
413
413
414
414
==== Enabling SSL/TLS on the server
415
415
416
-
Server SSL/TLS is enabled with the `NetServerOptions` {@link io.vertx.core.net.NetServerOptions#setSsl(boolean) ssl} setting.
416
+
Server SSL/TLS is enabled with the `TcpServerConfig` {@link io.vertx.core.net.TcpServerConfig#setSsl(boolean) ssl} setting.
417
417
418
418
By default, it is disabled.
419
419
@@ -426,7 +426,7 @@ You can read more about <<server_ssl,SSL server configuration>>
426
426
427
427
==== Enabling SSL/TLS on the client
428
428
429
-
Client SSL/TLS is enabled with the `NetClientOptions` {@link io.vertx.core.net.NetClientOptions#setSsl(boolean) ssl} property or {@link io.vertx.core.net.ConnectOptions#setSsl(boolean) ssl} property.
429
+
Client SSL/TLS is enabled with the `TcpClientConfig` {@link io.vertx.core.net.TcpClientConfig#setSsl(boolean) ssl} property or {@link io.vertx.core.net.ConnectOptions#setSsl(boolean) ssl} property.
430
430
431
431
The former defines the default client behavior.
432
432
@@ -535,7 +535,7 @@ The engine options to use is
535
535
536
536
The {@link io.vertx.core.net.NetClient} supports either an HTTP/1.x _CONNECT_, _SOCKS4a_ or _SOCKS5_ proxy.
537
537
538
-
The proxy can be configured in the {@link io.vertx.core.net.NetClientOptions} by setting a
538
+
The proxy can be configured in the {@link io.vertx.core.net.TcpClientConfig} by setting a
539
539
{@link io.vertx.core.net.ProxyOptions} object containing proxy type, hostname, port and optionally username and password.
540
540
541
541
Here's an example:
@@ -549,7 +549,7 @@ Here's an example:
549
549
The DNS resolution is always done on the proxy server, to achieve the functionality of a SOCKS4 client, it is necessary
550
550
to resolve the DNS address locally.
551
551
552
-
You can use {@link io.vertx.core.net.NetClientOptions#setNonProxyHosts} to configure a list of host bypassing
552
+
You can use {@link io.vertx.core.net.TcpClientConfig#setNonProxyHosts} to configure a list of host bypassing
553
553
the proxy. The lists accepts `*` wildcard for matching domains:
554
554
555
555
[source,$lang]
@@ -564,7 +564,7 @@ https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt[HA PROXY protocol] p
564
564
information such as a client's address across multiple layers of NAT or TCP
565
565
proxies.
566
566
567
-
HA PROXY protocol can be enabled by setting the option {@link io.vertx.core.net.NetServerOptions#setUseProxyProtocol(boolean)}
567
+
HA PROXY protocol can be enabled by setting the option {@link io.vertx.core.net.TcpServerConfig#setUseProxyProtocol(boolean)}
568
568
and adding the following dependency in your classpath:
0 commit comments