Changeset 246

Show
Ignore:
Timestamp:
12/09/07 12:19:38 (9 months ago)
Author:
gethema..@gmail.com
Message:

check in code that makes use of tcp server

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/framework/core.rb

    r245 r246  
    6868        begin 
    6969          client_socket,client_sockaddr = sock_io.accept_nonblock 
    70           client_socket.setsockopt(*$tcp_cork_opts) rescue nil 
    71           #client_sockaddr.setsockopt(Socket::IPPROTO_TCP,Socket::TCP_NODELAY,1) 
     70          # client_socket.setsockopt(*$tcp_cork_opts) rescue nil 
     71          client_socket.setsockopt(Socket::IPPROTO_TCP,Socket::TCP_NODELAY,1) 
    7272        rescue Errno::EAGAIN, Errno::ECONNABORTED, Errno::EPROTO, Errno::EINTR 
    7373          puts "not ready yet" 
  • trunk/lib/backgroundrb.rb

    r238 r246  
    2323      timeout(3) do 
    2424        @connection = TCPSocket.open(@@server_ip, @@server_port) 
     25        @connection.setsockopt(Socket::IPPROTO_TCP,Socket::TCP_NODELAY,1) 
    2526      end 
    2627      @connection_status = true