make HttpSocket suit for nonblock server
add send interval and send count for test script
add nonblock implementation