kernelsauce / turbo

Turbo is a framework built for LuaJIT 2 to simplify the task of building fast and scalable network applications. It uses a event-driven, non-blocking, no thread design to deliver excellent performance and minimal footprint to high-load applications while also providing excellent support for embedded uses.
http://turbo.readthedocs.io/
Apache License 2.0
528 stars 84 forks source link

Busy loop (high load) while https redirect in curl.lua example #140

Closed miko closed 9 years ago

miko commented 10 years ago

I get a high load (busy loop) when using curl example with HTTP redirect, until it times out after 30 secs:

luajit curl.lua http://ourrepos.repositoryhosting.com/
[W 2014/07/28 00:50:40] [async.lua] GET ourrepos.repositoryhosting.com:80/ => 302 Found 688ms                                                                     
[W 2014/07/28 00:50:40] [async.lua] Redirect to => http://ourrepos.repositoryhosting.com/account                                                                  
[W 2014/07/28 00:50:40] [async.lua] GET ourrepos.repositoryhosting.com:80/account => 302 Found 1288ms                                                             
[W 2014/07/28 00:50:40] [async.lua] Redirect to => https://ourrepos.repositoryhosting.com/account                                                                 
[W 2014/07/28 00:51:11] [async.lua] Connect timed out after 30 secs. GET ourrepos.repositoryhosting.com/account                                                   
[E 2014/07/28 00:51:11] [async.lua] Error code -5. Connect timed out after 30 secs                                                                                
kernelsauce commented 10 years ago

Hm. Thats strange. Ill take a look later.

kernelsauce commented 9 years ago

Fixed in master.