Class: Ethon::Curl::FDSet Private

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/ethon/curls/classes.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

:nodoc:

Constant Summary collapse

FD_SETSIZE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

github.com/typhoeus/ethon/issues/182

begin
  # Allow to override the (new) default cap
  if ENV['ETHON_FD_SIZE']
    ENV['ETHON_FD_SIZE']

  # auto-detect ulimit, but cap at 2^16
  else
    [::Ethon::Libc.getdtablesize, 65_536].min
  end
end

Instance Method Summary collapse

Instance Method Details

#clearObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

:nodoc:



50
# File 'lib/ethon/curls/classes.rb', line 50

def clear; self[:fd_count] = 0; end