From: Kevin Clark Date: Wed, 18 Jun 2008 01:11:29 +0000 (+0000) Subject: Stop using deprecated name TSocket and fix TCPserver->TCPServer X-Git-Tag: 0.2.0~579 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=150af8b7c600808cf6f52d792bef36ea54022f02;p=common%2Fthrift.git Stop using deprecated name TSocket and fix TCPserver->TCPServer git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668971 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/rb/lib/thrift/transport/socket.rb b/lib/rb/lib/thrift/transport/socket.rb index 762b8d3d..fdd0bc05 100644 --- a/lib/rb/lib/thrift/transport/socket.rb +++ b/lib/rb/lib/thrift/transport/socket.rb @@ -47,7 +47,7 @@ module Thrift begin data = @handle.recv(sz) if (data.length == 0) - raise TransportException.new("TSocket: Could not read #{sz} bytes from #{@host}:#{@port}") + raise TransportException.new("Socket: Could not read #{sz} bytes from #{@host}:#{@port}") end return data rescue StandardError @@ -69,7 +69,7 @@ module Thrift end def listen() - @handle = TCPserver.new(nil, @port) + @handle = TCPServer.new(nil, @port) end def accept()