diff options
Diffstat (limited to 'sample/drb/http0.rb')
-rw-r--r-- | sample/drb/http0.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sample/drb/http0.rb b/sample/drb/http0.rb index 7649925282..d4c9f6b7fb 100644 --- a/sample/drb/http0.rb +++ b/sample/drb/http0.rb @@ -46,14 +46,14 @@ module DRb def close; end def alive?; false; end - + def send_request(ref, msg_id, *arg, &b) stream = StrStream.new @msg.send_request(stream, ref, msg_id, *arg, &b) @reply_stream = StrStream.new post(@uri, stream.buf) end - + def recv_reply @msg.recv_reply(@reply_stream) end @@ -66,7 +66,7 @@ module DRb http.post(path, data, {'Content-Type'=>'application/octetstream;'}) do |str| sio.write(str) if @config[:load_limit] < sio.buf.size - raise TypeError, 'too large packet' + raise TypeError, 'too large packet' end end @reply_stream = sio |