Skip to content

Commit cfe3cd3

Browse files
committed
Add example of shutting down connection manager to documentation
1 parent c404eae commit cfe3cd3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,10 @@ for each request:
558558
(get "http://aoeu.com/1" {:connection-manager cm2})
559559
(post "http://aoeu.com/2" {:connection-manager cm})
560560
(get "http://aoeu.com/3" {:connection-manager cm2})
561+
562+
;; Don't forget to shut it down when you're done!
563+
(clj-http.conn-mgr/shutdown-manager cm)
564+
(clj-http.conn-mgr/shutdown-manager cm2)
561565
```
562566

563567
See the docstring on `make-reusable-conn-manager` for options and

changelog.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#+LANGUAGE: en
99

1010
* Changelog
11-
List of user-visible changes that have gone into each release
11+
List of user-visible changes that have gone into each release
1212
** 0.9.0
1313
- Bumped httpcore to 4.3.2
1414
- Merged https://github.com/dakrone/clj-http/pull/190 to support file multiparts

0 commit comments

Comments
 (0)