module Typhoeus::Pool
def self.get
-
(Ethon::Easy)
- The easy.
Other tags:
- Example: Return easy. -
def self.get @mutex.synchronize do if @pid == Process.pid easies.pop else # Process has forked. Clear all easies to avoid sockets being # shared between processes. @pid = Process.pid easies.clear nil end end || Ethon::Easy.new end