Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matiasgarciaisaia/e85c72d8e342b5ce758d847a70d1886e to your computer and use it in GitHub Desktop.
Save matiasgarciaisaia/e85c72d8e342b5ce758d847a70d1886e to your computer and use it in GitHub Desktop.
Crystal raises SSL_shutdown: Operation now in progress - see https://github.com/crystal-lang/crystal/issues/3168
$ crystal --version
Crystal 0.18.7 (2016-08-05)
$ crystal tmp/test.cr
Pinging...
Pinging...
Pinging...
Pinging...
Pinging...
Pinging...
Pinging...
Pinging...
Pinging...
Pinging...
Post yield
Pong
status # => 8
Pinging...
Pong
status # => 5
Pinging...
Pong
status # => 4
Pinging...
Pong
status # => 8
Pinging...
Pong
status # => 9
Pinging...
Pong
status # => 5
Pinging...
Pong
status # => 7
Pinging...
Pong
status # => 4
Pinging...
Pong
status # => 6
Pinging...
Pong
status # => 6
Pinging...
Pong
status # => 5
Pinging...
Pong
status # => 5
Pinging...
Unhandled exception:
SSL_shutdown: Operation now in progress (Errno)
[4440073698] *CallStack::unwind:Array(Pointer(Void)) +82
[4440073601] *CallStack#initialize:Array(Pointer(Void)) +17
[4440073560] *CallStack::new:CallStack +40
[4440034617] *raise<Errno>:NoReturn +25
[4440200954] *OpenSSL::SSL::Socket+@OpenSSL::SSL::Socket#close:Nil +346
[4440259434] *HTTP::Client#close:Nil +122
[4440256106] *HTTP::Client::exec<String, String, Nil, Nil, Nil>:HTTP::Client::Response +650
[4440255439] *HTTP::Client::get<String>:HTTP::Client::Response +31
[4440052194] ~procProc(Nil)@./tmp/test.cr:7 +66
[4440070932] *Fiber#run:(Int64 | Nil) +164
[4440042917] ~proc2Proc(Fiber, (Int64 | Nil))@/usr/local/Cellar/crystal-lang/0.18.7_1/src/fiber.cr:28 +21
Unhandled exception:
SSL_shutdown: Operation now in progress (Errno)
[4440073698] *CallStack::unwind:Array(Pointer(Void)) +82
[4440073601] *CallStack#initialize:Array(Pointer(Void)) +17
[4440073560] *CallStack::new:CallStack +40
[4440034617] *raise<Errno>:NoReturn +25
[4440200954] *OpenSSL::SSL::Socket+@OpenSSL::SSL::Socket#close:Nil +346
[4440259434] *HTTP::Client#close:Nil +122
[4440256106] *HTTP::Client::exec<String, String, Nil, Nil, Nil>:HTTP::Client::Response +650
[4440255439] *HTTP::Client::get<String>:HTTP::Client::Response +31
[4440052194] ~procProc(Nil)@./tmp/test.cr:7 +66
[4440070932] *Fiber#run:(Int64 | Nil) +164
[4440042917] ~proc2Proc(Fiber, (Int64 | Nil))@/usr/local/Cellar/crystal-lang/0.18.7_1/src/fiber.cr:28 +21
Pong
status # => 6
Pinging...
Pong
status # => 6
Pinging...
Pong
status # => 7
Pinging...
Pong
status # => 6
Pinging...
Pong
status # => 6
Pinging...
Pong
status # => 9
Pinging...
Pong
status # => 6
Pinging...
Pong
status # => 4
Pinging...
Pong
status # => 6
Pinging...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment