lib/angelo.rb in angelo-0.1.3 vs lib/angelo.rb in angelo-0.1.4
- old
+ new
@@ -42,9 +42,11 @@
NOT_FOUND = 'Not Found'
LOG_FORMAT = '%s - - "%s %s%s HTTP/%s" %d %s'
+ DEFAULT_PING_TIME = 30
+
def self.log connection, request, socket, status, body_size = '-'
remote_ip = ->{
if socket.nil?
connection.remote_ip rescue 'unknown'