vapor / async-kit

Sugary extensions for the SwiftNIO library
MIT License
71 stars 25 forks source link

Request: Add a timeout for waiting on pooled connections #38

Closed MrMage closed 4 years ago

MrMage commented 5 years ago

There should be an option to automatically fail a future returned by requestConnection after, say, 15 seconds if the pool is still exhausted after the end of the timeout. This would be another option to eliminate the deadlock described in https://github.com/vapor/nio-kit/blob/master/Sources/NIOKit/ConnectionPool.swift; one request would fail after waiting too long, allowing all others to proceed.

MrLotU commented 4 years ago

Fixed per #67