Project

General

Profile

Backport #10938

socket.for_fd works on 1.8 and not on 1.9

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

Status:
Third Party's Issue
Priority:
Normal
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.

History

Updated by nobu (Nobuyoshi Nakada) over 4 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 4 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)

?

Also available in: Atom PDF