Re: ruby-1.8.1 win2k apache2: mod_ruby shuts off network connections
Kaspar Schiess <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Here goes: > Can you open a socket from your script with a connection to any other > place ? What's the exact windows error code ? Try also to open a The windows error code gets masked by ruby. Do you know the $... variable that accesses this code ? Some findings (before I finally resign for today): - Launched as CGI ruby *can* access the web, returning, after a little wait, correct ip's (for my silly example). - Incorrect host names give an 'no address associated with hostname.' .. like they damn well should. And I see access of my connection while I wait. - Going back to good (existing) host names, I get the IP back. and now: - Testing the mod_ruby script inbetween gives back the old 'no address associated with hostname.'. But without delay. - Now the CGI does not work anymore. And this without delay. (All of this found by launching in shell as SuperUser, so priviledge issues are not involved here.) I interpret all of this as if mod_ruby wrongly initializes (destructs) the winsock connection and then fails to access (since the connection is dead). CGI must fail also, since the corrupted socket access won't allow another initialization. Relaunching Apache2 gets me back to where I started out. Traz> And the second point : is that the eruby-run.rb require eruby.rb .... Traz> and i haven't found nowhere this file !!! (checked the mod_ruby and Traz> eruby pack on modruby.net). He should not be looking for eruby.rb, but for eruby.so... which exists. But all the simpler: download eruby precompiled from ruby-lang.org in the mingw-distribution. Or the mswin32 one, don't remember which. And by the way, don't try to run this as a CGI, since current versions feature a bug that has been fixed since, but is too new to have been compiled in. The config Traz posts is correct. I basically got mod_ruby AND eruby working, Xept for that networking ( !ç((/&*ç(/! ) stuff. Sucks. kaspar - code philosopher