#463: Intermitent crashes with MacRuby 0.5 HEAD (2009/11/26), Ruby threads and
RestClient/Net:HTTP
-------------------------------+--------------------------------------------
 Reporter:  ser...@…           |       Owner:  lsansone...@…        
     Type:  defect             |      Status:  new                  
 Priority:  minor              |   Milestone:  MacRuby 0.5          
Component:  MacRuby            |    Keywords:                       
-------------------------------+--------------------------------------------

Comment(by ser...@…):

 Hey guys, thanks a lot for the feedback.

 Not sure if it's the same, but the following code triggers the bug:

 {{{
 require 'rubygems'
 require 'restclient'

 threads = []
 loop do
   threads << Thread.start do
     puts 'doing request'
     RestClient.get 'http://google.com'
   end
   sleep 0.1
 end
 }}}

 I guess I'll workaround it using NSURLConnection or something else...

 Thanks!

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/463#comment:5>
MacRuby <http://macruby.org/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to