ngauthier / tubesock

Websocket interface on Rack Hijack w/ Rails support
MIT License
620 stars 43 forks source link

undefined method `closed?' #34

Closed leckylao closed 8 years ago

leckylao commented 10 years ago

tubesock-0.2.4/lib/tubesock.rb:72:in close': undefined methodclosed?' for #Puma::MiniSSL::Socket:0x00000005b11d90 (NoMethodError)

When using with puma ssl. The socket class becomes Puma::MiniSSL::Socket and it caused this error.

leckylao commented 10 years ago

can patch with:

    begin
      @socket.close unless @socket.closed?
    rescue NoMethodError => e
      @socket.close
    end
rickychilcott commented 8 years ago

Looks like this issue can be closed based on #35 being merged. Correct?

leckylao commented 8 years ago

👍