something like this may help: http://blogs.perl.org/users/mstplbg/2010/12/using-anyevent-and-dancer.html http://blogs.perl.org/users/mstplbg/2010/12/anyevent-and-dancer-condvars.html
anyway, I didn't try fork or Coro in Dancer so I can't tell a solution. but from the comment, the Dancer author Sawyer did fork in Dancer. so you may want to send an email to dancer mailing list: http://lists.perldancer.org/cgi-bin/listinfo/dancer-users Thanks On 2010/12/26 13:10, JohnTeee wrote: > 小弟最近才开始用Dancer,在win32下用StandAlone方式运行 > 然而发现若用内建的fork,以及CPAN上的Coro模块都不能正常运行 > 是否要用CGI的方式来运行,才能够同时运行两个App? > 会需要这样的功能,是因为: > 若一个request进来,呼叫外部指令等待时间过久, > 同时有其它使用者等待被服务,那么就会卡住--->直到第一个request完成 > 有前辈也遇过同样的问题吗? > -- Fayland Lam // http://www.fayland.org/ -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
