Topic: Eventmachine giving problems in windows machines .....

Hi there,

I am struck with this wierd problem in windows when I am trying to use the thin server for my RoR application developed in ruby 1.9.1p376 version and rails 2.3.5 version and I have been facing quite some problems to get this up and running in my local box. i would like to explain tehe various problems I had encounterd. FYI, I am going to host my RoR application in a Windows server.

1.  no such file or directory - rubyeventmachine ==> require 'rubyeventmachine' in line no. 66 of the eventmachine.rb file.
==> Really couldn't understand what this option should be changed to. Experimentally, had changed the ruby_eventmachine to pr_eventmachine and the symbol to :cascade option

2.  After changing to pr_eventmachine ==> No such file or directory : uuidgen (pr_event_machine)
==>After some googling, installed the Microsoft SDK which has the UUidgen.exe which can solve the problem. Hard coded the `uuidgen` with `<PATH to the uuidgen.exe>` and the server was getting started.

3.  The application starts fine, but fails with the error :
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.8-x86-mswin32-60/lib/pr_eventmachine.rb:587:in `write_nonblock': A non-blocking
socket operation could not be completed immediately. (Errno::EWOULDBLOCK)
        from G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.8-x86-mswin32-60/lib/pr_eventmachine.rb:587:in `eventable_write'
        from G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.8-x86-mswin32-60/lib/pr_eventmachine.rb:371:in `block in crank_selectable
s'

These things have been haunting me for quite some time. Please do suggest me what  a missing here, what option should I select in point #1, and is there a rubyeventmachine.rb file to bedownloaded and included in any of the directories?

FYI, My full gem list are given below.
=============================================================
actionmailer (2.3.5, 2.2.2)
actionpack (2.3.5, 2.2.2)
activerecord (2.3.5, 2.2.2)
activeresource (2.3.5, 2.2.2)
activesupport (2.3.8, 2.3.5, 2.2.2)
Ascii85 (1.0.0)
cgi_multipart_eof_fix (2.5.0)
color (1.4.1)
daemons (1.1.0, 1.0.3)
eventmachine (0.12.8 x86-mswin32-60)
fastthread (1.0.1 i386-mswin32)
gem_plugin (0.2.3)
guid (0.1.1)
gupshup (0.2.3)
hoe (2.6.1)
httpclient (2.1.5.2)
image_science (1.2.1)
json_pure (1.4.6)
log4r (1.1.7)
mysql (2.8.1 x86-mswin32)
paperclip (2.3.3)
pdf-reader (0.8.5)
pdf-writer (1.1.8)
rack (1.0.1)
rails (2.3.5, 2.2.2)
rake (0.8.7)
rubyforge (2.0.4)
rubygems-update (1.3.7)
thin (1.2.7 x86-mswin32)
transaction-simple (1.4.0)
=====================================================================

And my gem environment is
===============================================================
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7
  - RUBY VERSION: 1.9.1 (2009-12-07 patchlevel 376) [i386-mswin32]
  - INSTALLATION DIRECTORY: G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.
1
  - RUBY EXECUTABLE: G:/Softwares/Softwares/ruby-1.9.1/bin/ruby.exe
  - EXECUTABLE DIRECTORY: G:/Softwares/Softwares/ruby-1.9.1/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mswin32-60
  - GEM PATHS:
     - G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1
     - C:/Users/vaio/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => [