iproto 0.3.13 → 0.3.14

Sign up to get free protection for your applications and to get access to all the features.
data/iproto.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'iproto'
7
- s.version = '0.3.13'
7
+ s.version = '0.3.14'
8
8
  s.date = '2014-01-15'
9
9
  s.rubyforge_project = 'iproto'
10
10
 
data/lib/iproto.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module IProto
2
- VERSION = '0.3.13'
2
+ VERSION = '0.3.14'
3
3
  class IProtoError < StandardError; end
4
4
  class ConnectionError < IProtoError; end
5
5
  class CouldNotConnect < ConnectionError; end
@@ -34,6 +34,7 @@ module IProto
34
34
  sock != :disconnected ? sock : raise(Disconnected, "disconnected earlier")
35
35
  else
36
36
  sock = @socket = ::TCPSocket.new(*@addr)
37
+ sock.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
37
38
  @retry = true
38
39
  end
39
40
  sock
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: iproto
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.13
5
+ version: 0.3.14
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andrew Rudenko