Changeset 33749 in project
- Timestamp:
- 11/19/16 15:02:07 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wiki/eggref/4/http-client
r33507 r33749 238 238 ==== Connection management 239 239 240 This egg tries to re-use connections that are marked as keep-alive, to 241 avoid unnecessary overhead in establishing new connections when making 242 multiple requests to the same server. This is handled through a pool 243 of idle connections from which the request procedures take the oldest 244 active connection. 245 246 <parameter>(max-idle-connections [count])</parameter> 247 248 This controls the maximum allowed idle connections at any given time. 249 When a connection would be returned to the pool, the connection will 250 be discarded instead, if the maximum is exceeded. 251 252 This value should always be well below the maximum number of available 253 file descriptors for your operating system. 254 255 Defaults to {{32}}. 256 257 240 258 <procedure>(close-connection! uri)</procedure> 241 259 242 260 Close the connection to the server associated with the URI. 243 261 262 <procedure>(close-idle-connections!)</procedure> 263 264 Close all remaining idle connections. Note that connections that are 265 currently in use will still be returned to the connection pool after 266 their requests finish! 267 244 268 <procedure>(close-all-connections!)</procedure> 245 269 246 Close all connections to all servers.270 Deprecated alias for {{close-idle-connections!}}. 247 271 248 272 ==== Setting up custom server connections … … 487 511 === Changelog 488 512 513 * trunk Add {{max-idle-connections}} to avoid FD exhaustion (thanks to [[/users/alaric-blagrave-snellpym|Alaric]] for pointing out this issue). 489 514 * 0.10 Do not read {{HTTP_PROXY}} if {{REQUEST_METHOD}} is present (running in a CGI script), to prevent "[[https://httpoxy.org|httpoxy]]" attack (CVE-2016-6287). 490 515 * 0.9 Add support for custom connector procedures. Thanks to Ryan Senior for suggesting support for https client certificates, which this makes possible.
Note: See TracChangeset
for help on using the changeset viewer.