Skip to content

Commit

Permalink
jetty#5150 - Code style fix and connect timeout docs update
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Mozzhechkov <oleg.mozzhechkov@gmail.com>
  • Loading branch information
olegmoz committed Aug 13, 2020
1 parent bffd6a2 commit 32fe19a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -690,7 +690,7 @@ public void setName(String name)
}

/**
* @return the max time, in milliseconds, a connection can take to connect to destinations
* @return the max time, in milliseconds, a connection can take to connect to destinations. Zero value means infinite timeout.
*/
@ManagedAttribute("The timeout, in milliseconds, for connect() operations")
public long getConnectTimeout()
Expand All @@ -699,7 +699,7 @@ public long getConnectTimeout()
}

/**
* @param connectTimeout the max time, in milliseconds, a connection can take to connect to destinations
* @param connectTimeout the max time, in milliseconds, a connection can take to connect to destinations. Zero value means infinite timeout.
* @see java.net.Socket#connect(SocketAddress, int)
*/
public void setConnectTimeout(long connectTimeout)
Expand Down
Expand Up @@ -888,7 +888,7 @@ class Connect implements SelectorUpdate, Runnable
{
this.channel = channel;
this.attachment = attachment;
final long timeout = ManagedSelector.this._selectorManager.getConnectTimeout();
long timeout = ManagedSelector.this._selectorManager.getConnectTimeout();
if (timeout > 0)
this.timeout = ManagedSelector.this._selectorManager.getScheduler().schedule(this, timeout, TimeUnit.MILLISECONDS);
else
Expand Down

0 comments on commit 32fe19a

Please sign in to comment.