queue resize
swift close connection