Hello folks, my first post here and I''m glad to be here with you. I''m very anxious to start off with eventmachine but I must be doing something wrong. I generally don''t use Windows as my ruby-dev-env. Since I''m running a lack of hardware recently, opening a vmware instance is out of consideration at the moment : / Anyway, Firstly, I tried to run the pure-ruby implementation in rub 1.8.6. Seems to me there''s something wrong with the standard lib Fcntl on Windows. The const Fcntl::F_GETFL is missing (I opened it up in the irb just to check it out). The const is also missing at the latest ruby version (1.9). After digging a little bit I found this message: http://aspn.activestate.com/ASPN/Mail/Message/activeperl/3173107 Is that true??? pure-ruby would come very handy for me. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071217/2e1b86d8/attachment.html
On Dec 17, 2007 6:25 PM, guilherme antoniolo <antoniolo at gmail.com> wrote:> Hello folks, my first post here and I''m glad to be here with you. > > I''m very anxious to start off with eventmachine but I must be doing > something wrong. > > I generally don''t use Windows as my ruby-dev-env. Since I''m running a lack > of hardware recently, opening a vmware instance is out of consideration at > the moment : / > > Anyway, > Firstly, I tried to run the pure-ruby implementation in rub 1.8.6. Seems > to me there''s something wrong with the standard lib Fcntl on Windows. The > const Fcntl::F_GETFL is missing (I opened it up in the irb just to check it > out). The const is also missing at the latest ruby version ( 1.9). > > After digging a little bit I found this message: > http://aspn.activestate.com/ASPN/Mail/Message/activeperl/3173107 > > Is that true??? pure-ruby would come very handy for me. >Can you post a minimal program that exhibits the problem you''re describing? I''ll test it on Windows in pure-Ruby EM and let you know immediately if I can reproduce it. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071218/5232eaf8/attachment.html
Sure ################## $eventmachine_library = :pure_ruby $LOAD_PATH.unshift File.dirname(__FILE__) + ''/dep/eventmachine/lib'' require ''eventmachine'' module EchoServer def receive_data data send_data ">>>you sent: #{data}" close_connection end end EventMachine::run do EventMachine::start_server "10.1.1.6", 8081, EchoServer end ################### On Dec 18, 2007 11:06 AM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote:> On Dec 17, 2007 6:25 PM, guilherme antoniolo <antoniolo at gmail.com> wrote: > > > Hello folks, my first post here and I''m glad to be here with you. > > > > I''m very anxious to start off with eventmachine but I must be doing > > something wrong. > > > > I generally don''t use Windows as my ruby-dev-env. Since I''m running a > > lack of hardware recently, opening a vmware instance is out of consideration > > at the moment : / > > > > Anyway, > > Firstly, I tried to run the pure-ruby implementation in rub 1.8.6. Seems > > to me there''s something wrong with the standard lib Fcntl on Windows. The > > const Fcntl::F_GETFL is missing (I opened it up in the irb just to check it > > out). The const is also missing at the latest ruby version ( 1.9). > > > > After digging a little bit I found this message: > > http://aspn.activestate.com/ASPN/Mail/Message/activeperl/3173107 > > > > Is that true??? pure-ruby would come very handy for me. > > > > > > Can you post a minimal program that exhibits the problem you''re > describing? I''ll test it on Windows in pure-Ruby EM and let you know > immediately if I can reproduce it. > > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071218/3e9186e2/attachment-0001.html
On Dec 18, 2007 9:30 AM, guilherme antoniolo <antoniolo at gmail.com> wrote:> Sure > > ################## > > $eventmachine_library = :pure_ruby > $LOAD_PATH.unshift File.dirname(__FILE__) + ''/dep/eventmachine/lib'' > require ''eventmachine'' > > module EchoServer > def receive_data data > send_data ">>>you sent: #{data}" > close_connection > end > end > > EventMachine::run do > EventMachine::start_server "10.1.1.6 ", 8081, EchoServer > end > > ################### > > > On Dec 18, 2007 11:06 AM, Francis Cianfrocca <garbagecat10 at gmail.com> > wrote: > > > On Dec 17, 2007 6:25 PM, guilherme antoniolo < antoniolo at gmail.com> > > wrote: > > > > > Hello folks, my first post here and I''m glad to be here with you. > > > > > > I''m very anxious to start off with eventmachine but I must be doing > > > something wrong. > > > > > > I generally don''t use Windows as my ruby-dev-env. Since I''m running a > > > lack of hardware recently, opening a vmware instance is out of consideration > > > at the moment : / > > > > > > Anyway, > > > Firstly, I tried to run the pure-ruby implementation in rub 1.8.6. > > > Seems to me there''s something wrong with the standard lib Fcntl on Windows. > > > The const Fcntl::F_GETFL is missing (I opened it up in the irb just to check > > > it out). The const is also missing at the latest ruby version ( 1.9). > > > > > > After digging a little bit I found this message: > > > http://aspn.activestate.com/ASPN/Mail/Message/activeperl/3173107 > > > > > > Is that true??? pure-ruby would come very handy for me. > > > > > > > > > > > Can you post a minimal program that exhibits the problem you''re > > describing? I''ll test it on Windows in pure-Ruby EM and let you know > > immediately if I can reproduce it. > > > > _______________________________________________ > > Eventmachine-talk mailing list > > Eventmachine-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/eventmachine-talk > > > > > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >Reproduced the problem. The patch is easy enough, but it has an impact on EM#defer which I have to straighten out. Thanks for your patience. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071218/8ed80e5f/attachment.html
alright Francis. Much appreciate. On Dec 18, 2007 4:21 PM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote:> On Dec 18, 2007 9:30 AM, guilherme antoniolo <antoniolo at gmail.com> wrote: > > > Sure > > > > ################## > > > > $eventmachine_library = :pure_ruby > > $LOAD_PATH.unshift File.dirname(__FILE__) + ''/dep/eventmachine/lib'' > > require ''eventmachine'' > > > > module EchoServer > > def receive_data data > > send_data ">>>you sent: #{data}" > > close_connection > > end > > end > > > > EventMachine::run do > > EventMachine::start_server " 10.1.1.6 ", 8081, EchoServer > > end > > > > ################### > > > > > > On Dec 18, 2007 11:06 AM, Francis Cianfrocca < garbagecat10 at gmail.com> > > wrote: > > > > > On Dec 17, 2007 6:25 PM, guilherme antoniolo < antoniolo at gmail.com> > > > wrote: > > > > > > > Hello folks, my first post here and I''m glad to be here with you. > > > > > > > > I''m very anxious to start off with eventmachine but I must be doing > > > > something wrong. > > > > > > > > I generally don''t use Windows as my ruby-dev-env. Since I''m running > > > > a lack of hardware recently, opening a vmware instance is out of > > > > consideration at the moment : / > > > > > > > > Anyway, > > > > Firstly, I tried to run the pure-ruby implementation in rub 1.8.6. > > > > Seems to me there''s something wrong with the standard lib Fcntl on Windows. > > > > The const Fcntl::F_GETFL is missing (I opened it up in the irb just to check > > > > it out). The const is also missing at the latest ruby version ( 1.9 > > > > ). > > > > > > > > After digging a little bit I found this message: > > > > http://aspn.activestate.com/ASPN/Mail/Message/activeperl/3173107 > > > > > > > > Is that true??? pure-ruby would come very handy for me. > > > > > > > > > > > > > > > > Can you post a minimal program that exhibits the problem you''re > > > describing? I''ll test it on Windows in pure-Ruby EM and let you know > > > immediately if I can reproduce it. > > > > > > _______________________________________________ > > > Eventmachine-talk mailing list > > > Eventmachine-talk at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/eventmachine-talk > > > > > > > > > _______________________________________________ > > Eventmachine-talk mailing list > > Eventmachine-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/eventmachine-talk > > > > Reproduced the problem. The patch is easy enough, but it has an impact on > EM#defer which I have to straighten out. Thanks for your patience. > > > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071219/5d73bb8d/attachment.html
On Dec 19, 2007 4:29 AM, guilherme antoniolo <antoniolo at gmail.com> wrote:> alright Francis. > > Much appreciate. > >Ok, fixed. Please sync to the HEAD revision and try it. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071219/5c47af50/attachment.html