Stop udp connection allocation test hanging on linux. (#1578)
Motivation: Hanging tests make doing work and asserting correctness very difficult. Modifications: Remove address reuse from the server side of the udp channel. Result: The tests no longer hang. (The reason things we hanging was that the client side was occasionally getting assigned the same port number as the server side (extremely agressive port reuse)
This commit is contained in:
parent
3a2fc0d39b
commit
16b9dd6a61
|
@ -44,7 +44,6 @@ func run(identifier: String) {
|
|||
let serverHandler = CountReadsHandler(numberOfReadsExpected: numberOfIterations,
|
||||
completionPromise: group.next().makePromise())
|
||||
let serverChannel = try! DatagramBootstrap(group: group)
|
||||
.channelOption(ChannelOptions.socketOption(.so_reuseaddr), value: 1)
|
||||
// Set the handlers that are applied to the bound channel
|
||||
.channelInitializer { channel in
|
||||
return channel.pipeline.addHandler(serverHandler)
|
||||
|
|
Loading…
Reference in New Issue