[Rails] "EINVAL" Crashing with Instant Rails and PostgreSQL on Windows

Jeff Casimir jeff at commontext.com
Wed Dec 14 11:33:32 GMT 2005


Zed,

Thanks for the tip.  I think I am going to try switching from the "pure 
ruby" postgres-pr driver to the C-based driver (which I've never used) 
and see what happens.  If I track anything down relating to SCGI I'll 
let you know.

Thanks,
Jeff

Zed A. Shaw wrote:

>Hey Jeff,
>
>That actually looks like the socket being used has become invalid.  The
>man page on my Linux box says:
>
>EINVAL fd is attached to an object which is unsuitable for
>writing;  or the  file  was  opened  with  the  O_DIRECT flag, and
>either the address specified in buf, the value specified in count,  or
>the current file offset is not suitably aligned.
>
>So that means your connection is getting closed or aborted in the
>middle of a write operation.  Not sure if this helps though on Win32.
>
>Zed
>  
>


More information about the Rails mailing list