[MacRuby-devel] [MacRuby] #463: Intermitent crashes with MacRuby 0.5 HEAD (2009/11/26), Ruby threads and RestClient/Net:HTTP

MacRuby ruby-noreply at macosforge.org
Mon Nov 30 01:31:30 PST 2009


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

Comment(by sergio@…):

 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/>



More information about the MacRuby-devel mailing list