Made change to poller to handle persistent connections.