[MacRuby-devel] [MacRuby] #215: OpenSSL's SSLSocket appears not to be initialised correctly

MacRuby ruby-noreply at macosforge.org
Sun Jan 25 19:27:06 PST 2009


#215: OpenSSL's SSLSocket appears not to be initialised correctly
-------------------------------+--------------------------------------------
 Reporter:  celtic@…           |       Owner:  lsansonetti@…        
     Type:  defect             |      Status:  new                  
 Priority:  major              |   Milestone:                       
Component:  MacRuby            |    Keywords:  openssl              
-------------------------------+--------------------------------------------

Comment(by celtic@…):

 The issue causing the bug was due to '''rb_fdset_t'''s being allocated on
 the stack in '''rb_io_wait_readable'''. It appeared Ruby's autozone thing
 had a fit. I notice this was discussed in #160.

 I'm attached a diff for fixing this and OpenSSL's issues:
  1. '''rb_io_wait_readable''' and '''rb_io_wait_writable''' (for
 completeness) now allocate their fdsets on the heap (fixes autozone bug)
  2. '''SSLSocket#initialize''' is moved to Ruby code (but where to put the
 rdoc?)

 Let me know what you think.

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



More information about the MacRuby-devel mailing list