100% CPU consumption on AsyncServer::runLoop
I'm trying to implement HTTP proxy server, which does some HTTP response patching obtained from remote side. The simplified code is here. Could you explain please why the response.write(result) call at L34 works fine on small content and leads to looping without delay on large content (> 1MB)? Is it a bug or I'm missing something?