SPARK-1729. Use LinkedBlockingQueue instead of ArrayBuffer to keep track of connections.