You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by kc...@apache.org on 2008/06/18 03:11:29 UTC

svn commit: r668971 - /incubator/thrift/trunk/lib/rb/lib/thrift/transport/socket.rb

Author: kclark
Date: Tue Jun 17 18:11:29 2008
New Revision: 668971

URL: http://svn.apache.org/viewvc?rev=668971&view=rev
Log:
Stop using deprecated name TSocket and fix TCPserver->TCPServer

Modified:
    incubator/thrift/trunk/lib/rb/lib/thrift/transport/socket.rb

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/transport/socket.rb
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/transport/socket.rb?rev=668971&r1=668970&r2=668971&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/transport/socket.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/transport/socket.rb Tue Jun 17 18:11:29 2008
@@ -47,7 +47,7 @@
       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 @@
     end
 
     def listen()
-      @handle = TCPserver.new(nil, @port)
+      @handle = TCPServer.new(nil, @port)
     end
 
     def accept()