Hi All, I''m currently looking into doing a bit of evented network programming in ruby and i''m currently looking into packet, eventmachine and rev. The problem is that I need to be able to fork and start a new reactor within the forked child (it also should open a socket and write status information back to the main process). I have not been able to do this with EventMachine. When searching the mailinglist I found a mention of EventMachine.fork, is there any news on the progress on that? Thanks in advance, Flurin
Only thing I can think of would be to fork before starting up EM, or add a ''clear'' function to sockets or something [that doesn''t close them]. -R On Apr 23, 2:23?pm, Flurin Egger <flu... at digitpaint.nl> wrote:> Hi All, > > I''m currently looking into doing a bit of evented network programming ? > in ruby and i''m currently looking into packet, eventmachine and rev. > > The problem is that I need to be able to fork and start a new reactor ? > within the forked child (it also should open a socket and write ? > status information back to the main process). I have not been able to ? > do this with EventMachine. > > When searching the mailinglist I found a mention of ? > EventMachine.fork, is there any news on the progress on that? > > Thanks in advance, > Flurin > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-t... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/eventmachine-talk
Well I chose to use Rev as it seems more actively maintained and libev supports forking out of the box. Flurin On Apr 29, 2008, at 4:45 AM, rogerdpack wrote:> Only thing I can think of would be to fork before starting up EM, or > add a ''clear'' function to sockets or something [that doesn''t close > them]. > -R > > On Apr 23, 2:23 pm, Flurin Egger <flu... at digitpaint.nl> wrote: >> Hi All, >> >> I''m currently looking into doing a bit of evented network programming >> in ruby and i''m currently looking into packet, eventmachine and rev. >> >> The problem is that I need to be able to fork and start a new reactor >> within the forked child (it also should open a socket and write >> status information back to the main process). I have not been able to >> do this with EventMachine. >> >> When searching the mailinglist I found a mention of >> EventMachine.fork, is there any news on the progress on that? >> >> Thanks in advance, >> Flurin >> _______________________________________________ >> Eventmachine-talk mailing list >> Eventmachine-t... at rubyforge.orghttp://rubyforge.org/mailman/ >> listinfo/eventmachine-talk > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk