Multithreaded connection model