support thread socket