strongswan/src/libcharon/plugins/vici/ruby
Evan Broder 78ed330099 vici: Handle closed sockets in the Ruby gem
From recvfrom(2) (which UDPSocket#recv backs into):

  The return value will be 0 when the peer has performed an orderly
  shutdown.

(i.e. it will return an empty string)

Previously in this scenario, Vici::Transport#recv_all would spin
forever trying to pull more data off the socket. I'm not entirely
clear what happened that caused strongSwan to shutdown the socket, but
it probably should not cause vici Ruby apps to spin.

Closes strongswan/strongswan#13.
2015-08-24 11:24:05 +02:00
..
lib vici: Handle closed sockets in the Ruby gem 2015-08-24 11:24:05 +02:00
.gitignore vici: Use "gem"-assisted vici ruby gem building and installation 2014-10-10 11:42:17 +02:00
Makefile.am vici: Explicitly disable --user-install when installing Ruby Gem 2015-05-21 17:22:11 +02:00
vici.gemspec.in vici: Fix ruby gem author email 2015-01-22 15:00:45 +01:00