level 5
sikele2236
楼主
原文:http://www.oschina.net/translate/net_and_nodejs_performance_comparison_updated
这原作者的代码中有一处是无法直视的,他错误的使用了async await机制,导致始终阻塞了循环。并且ProcessRequest没有异步执行。这个不公平的较量却影响了这么多人结论发布于各个网站。
while (true)
{
var context = await this.listener.GetContextAsync();
this.ProcessRequest(context);
}
2014年01月28日 05点01分
1
这原作者的代码中有一处是无法直视的,他错误的使用了async await机制,导致始终阻塞了循环。并且ProcessRequest没有异步执行。这个不公平的较量却影响了这么多人结论发布于各个网站。
while (true)
{
var context = await this.listener.GetContextAsync();
this.ProcessRequest(context);
}