Merge pull request #1849 from akka/wip-3688-soreuseaddress-√

+act #3688 - Calls bind _after_ all pre-connect-hooks
This commit is contained in:
Patrik Nordwall 2013-12-04 23:22:53 -08:00
commit 3231bb3729

View file

@ -30,8 +30,8 @@ private[io] class TcpOutgoingConnection(_tcp: TcpExt,
context.watch(commander) // sign death pact
localAddress.foreach(channel.socket.bind)
options.foreach(_.beforeConnect(channel.socket))
localAddress.foreach(channel.socket.bind)
channelRegistry.register(channel, 0)
timeout foreach context.setReceiveTimeout //Initiate connection timeout if supplied