great question..Im interested in this as well. Jeff
Sangjin Lee wrote: > I had a quick question on the connect timeout... > The connect timeout supplied to connectors is in the unit of seconds, and it > appears the minimum value you can use is 1 second ( > AbstractIoConnector.setConnectTimeout() in the case of the trunk). Is this > by design? I can see cases where one needs to have a shorter connect > timeout, but it seems it is not possible today. One solution might be to > use ConnectFuture.join() with a timeout, but that works only if you want to > block until it times out... > > It also seems that this minimum timeout value is somewhat tied to the > timeout value used in the select() loop in the connector, which is hard > coded to be 1 second. Would it be a good idea to support connect timeout > values in milliseconds, and make it shorter than 1 second? > > Thanks, > Sangjin >