single thread echo server