Project

General

Profile

Actions

Backport #10938

closed

socket.for_fd works on 1.8 and not on 1.9

Added by ghomem (Gustavo Homem) over 9 years ago. Updated over 9 years ago.

Status:
Third Party's Issue
Assignee:
-
[ruby-core:68422]

Description

Test code:

#!/usr/bin/env ruby

require 'socket'

s=Socket.for_fd(STDIN.fileno)

Result on ruby 1.9

`for_fd': not a socket file descriptor (ArgumentError)

Because of this the fcgi gem does not work. Therefore one can't install Redmine on a mod_fcgid server.

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Status changed from Open to Third Party's Issue
  • Priority changed from 5 to 3

fcgi should update.

Updated by ghomem (Gustavo Homem) over 9 years ago

Nobuyoshi,

What do you you mean fcgi should update?
Is that call deprecated? (but it is still in the docs...)
Is there something wrong with the test code:

s=Socket.for_fd(STDIN.fileno)

?

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0