rxio 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6f34344e2ac47e8498e3ef3c86d65ada23b7817
4
- data.tar.gz: f77ce7121deb254fadc3c37b4a55322aafa8bac8
3
+ metadata.gz: f3ca2983bef7243b7a8ef20c9075cc73b8b29a99
4
+ data.tar.gz: cf2981e6c1679d58a0260349759b57f688c08037
5
5
  SHA512:
6
- metadata.gz: dd75cb72c3db49d10e894b7f1795f2a2f22f37eb1176f6e865ff01bc5ae8dc19dacf5dd2f0ca822bec5946b547c4413dbe808295a8b92c3e6743ecae85263c67
7
- data.tar.gz: 390df2da1ecd9d2bd4059d2825bf9ef826745b0397ed94cb93bf090546bb0eee221799d9e102b1289cadf51ac68023130038f84079974067245c46c8ede2f8b3
6
+ metadata.gz: 97c12b604254cf0fbfe9ab826aa7604e1607f3a868a1018ebe8d200efea2ef1b1bb0c570236225a685c3f24247c7b15196fe921503a822f9ed943a65594b2300
7
+ data.tar.gz: 3477b2fa34443e88127d915c6158329104646ddc18fef5d8499a9c6657bdd4edb967d7e3e73ec5d625fbf8f733e2f3482127222aba6b2281ed0a1fb597cd2775
data/README.md CHANGED
@@ -21,6 +21,8 @@ gem install -V rxio
21
21
 
22
22
  ## Usage
23
23
 
24
+ ### Introduction
25
+
24
26
  A simple service is created by spawning an instance of the *RxIO::Service* class, passing a *Handler Module* as argument to its constructor and calling its _run_ method.
25
27
 
26
28
  A simple client is created by spawning an instance of the *RxIO::Client* class, passing a *Handler Module* as argument to its constructor and calling its _run_ method.
data/lib/rxio/client.rb CHANGED
@@ -24,7 +24,7 @@ module RxIO
24
24
  # Reconnect Delay (seconds)
25
25
  RECONNECT_DELAY = 1
26
26
 
27
- # Select Timeout (Seconds)
27
+ # Select Timeout (seconds)
28
28
  SELECT_TIMEOUT = 0.1
29
29
 
30
30
  # Construct
@@ -126,6 +126,11 @@ module RxIO
126
126
  # Check Socket
127
127
  return nil unless @sock
128
128
 
129
+ # Reset Client Buffers
130
+ @client[:lock].synchronize { @client[:obuf] = '' }
131
+ @client[:ibuf] = ''
132
+ @client[:msgs] = []
133
+
129
134
  # Acquire Peer Address
130
135
  peer = @sock.peeraddr
131
136
  @client[:peer] = {
data/lib/rxio/service.rb CHANGED
@@ -21,7 +21,7 @@ module RxIO
21
21
  # I/O Base
22
22
  include IOBase
23
23
 
24
- # Select Timeout (Seconds)
24
+ # Select Timeout (seconds)
25
25
  SELECT_TIMEOUT = 0.1
26
26
 
27
27
  # Construct
data/lib/rxio/version.rb CHANGED
@@ -5,5 +5,5 @@
5
5
  module RxIO
6
6
 
7
7
  # Version
8
- VERSION = '0.12.1'
8
+ VERSION = '0.12.2'
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rxio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse