Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
Merge pull request #72 from fbernier/master
Browse files Browse the repository at this point in the history
Disable Nagle's alrogithm by default.
  • Loading branch information
tarcieri committed Jul 8, 2013
2 parents 6732f22 + 24a3fcf commit 341b23f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/reel/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Server
def initialize(host, port, backlog = DEFAULT_BACKLOG, &callback)
# This is actually an evented Celluloid::IO::TCPServer
@server = TCPServer.new(host, port)
@server.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
@server.listen(backlog)
@callback = callback
async.run
Expand Down

0 comments on commit 341b23f

Please sign in to comment.