Navigation Menu

Skip to content

Commit

Permalink
Output more trace log for unexpected errors on BufferedTCPSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 28, 2015
1 parent a753def commit 3a79588
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/droonga/buffered_tcp_socket.rb
Expand Up @@ -55,9 +55,15 @@ def on_writable
end
rescue Errno::EINTR
@_write_buffer.unshift(chunk)
logger.trace("Failed to send chunk. Retry later.",
:chunk => chunk,
:errpr => "Errno::EINTR")
return
rescue SystemCallError, IOError, SocketError
rescue SystemCallError, IOError, SocketError => exception
@_write_buffer.unshift(chunk)
logger.trace("Failed to send chunk. Retry later.",
:chunk => chunk,
:exception => exception)
return close
end
end
Expand Down

0 comments on commit 3a79588

Please sign in to comment.