use task.join for sock_copy. fix dubious buffer reuse
use callbacks for http-proxy example.