Skip to content

Instantly share code, notes, and snippets.

@p0pr0ck5
Created May 19, 2017 21:25
Show Gist options
  • Save p0pr0ck5/16523ae995be4d95922886b2e650c477 to your computer and use it in GitHub Desktop.
Save p0pr0ck5/16523ae995be4d95922886b2e650c477 to your computer and use it in GitHub Desktop.
keepalive related error logs. note the 60 second timeout to close the connection pools
root@vagrant-ubuntu-trusty-64:/usr/local/openresty/nginx# grep 4517 ./logs/error.log | grep keepalive
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket pool get keepalive peer
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket keepalive connection pool not found
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket set keepalive: saving connection 00007F919692B438
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket keepalive create connection pool for key "127.0.0.1:82"
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket keepalive timeout: 60000 ms
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket pool get keepalive peer
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket get keepalive peer: using connection 00007F919692B438, fd:13
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket set keepalive: saving connection 00007F919692B438
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket keepalive timeout: 60000 ms
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket pool get keepalive peer
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket get keepalive peer: using connection 00007F919692B438, fd:13
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket set keepalive: saving connection 00007F919692B438
2017/05/19 21:13:45 [debug] 4517#0: *1 lua tcp socket keepalive timeout: 60000 ms
2017/05/19 21:13:45 [debug] 4517#0: *1 set http keepalive handler
2017/05/19 21:13:45 [debug] 4517#0: keepalive dummy handler
2017/05/19 21:13:45 [debug] 4517#0: *1 http keepalive handler
2017/05/19 21:13:45 [info] 4517#0: *1 client 127.0.0.1 closed keepalive connection
2017/05/19 21:14:45 [debug] 4517#0: lua tcp socket keepalive max idle timeout
2017/05/19 21:14:45 [debug] 4517#0: lua tcp socket keepalive close handler: fd:13
2017/05/19 21:14:45 [debug] 4517#0: lua tcp socket keepalive: free connection pool for "127.0.0.1:82"
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket pool get keepalive peer
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket keepalive connection pool not found
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket set keepalive: saving connection 00007F919692B438
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket keepalive create connection pool for key "127.0.0.1:82"
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket keepalive timeout: 60000 ms
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket pool get keepalive peer
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket get keepalive peer: using connection 00007F919692B438, fd:13
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket set keepalive: saving connection 00007F919692B438
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket keepalive timeout: 60000 ms
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket pool get keepalive peer
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket get keepalive peer: using connection 00007F919692B438, fd:13
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket set keepalive: saving connection 00007F919692B438
2017/05/19 21:21:17 [debug] 4517#0: *4 lua tcp socket keepalive timeout: 60000 ms
2017/05/19 21:21:17 [debug] 4517#0: *4 set http keepalive handler
2017/05/19 21:21:17 [debug] 4517#0: keepalive dummy handler
2017/05/19 21:21:17 [debug] 4517#0: *4 http keepalive handler
2017/05/19 21:21:17 [info] 4517#0: *4 client 127.0.0.1 closed keepalive connection
2017/05/19 21:22:17 [debug] 4517#0: lua tcp socket keepalive max idle timeout
2017/05/19 21:22:17 [debug] 4517#0: lua tcp socket keepalive close handler: fd:13
2017/05/19 21:22:17 [debug] 4517#0: lua tcp socket keepalive: free connection pool for "127.0.0.1:82"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment