-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an option to control keep-alive connections
By default http module set keep-alive option in connections to make it persistent: $ tarantool examples/middleware.lua started entering the event loop HEAD / ... $ curl -I http://127.0.0.1:8080 HTTP/1.1 404 Not found Content-length: 0 Server: Tarantool http (tarantool v1.10.6-0-g5372cd2fa) Connection: keep-alive $ However sometimes we need persistent connection and close it instead. It is possible with option keepalive_disable. Option accepts a map where key is a user agent name with assigned non-nil value. Example: local httpd = http_server.new('127.0.0.1', 8080, { log_requests = true, log_errors = true, keepalive_disable = { ['curl/7.68.0'] = true }, }) 1. https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_disable Fixes #137
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters