File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,14 @@ The first thing you need to do is to connect with PuppetDB:
97
97
>> > from pypuppetdb import connect
98
98
>> > db = connect()
99
99
100
+ Once you're all done with requests to PuppetDB, you can explicitly close all
101
+ HTTP connections. This can be useful if you made those connections through a
102
+ tunnel, which might be tracking open connections:
103
+
104
+ .. code-block :: python
105
+
106
+ >> > db.disconnect()
107
+
100
108
You can also use the `with ` statement to enclose the work done on PuppetDB.
101
109
This will ensure that all HTTP connections are closed explicitly when we're
102
110
done:
Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ The first thing you need to do is to connect with PuppetDB:
15
15
>> > from pypuppetdb import connect
16
16
>> > db = connect()
17
17
18
+ Once you're all done with requests to PuppetDB, you can explicitly close all
19
+ HTTP connections. This can be useful if you made those connections through a
20
+ tunnel, which might be tracking open connections:
21
+
22
+ .. code-block :: python
23
+
24
+ >> > db.disconnect()
25
+
18
26
You can also use the `with ` statement to enclose the work done on PuppetDB.
19
27
This will ensure that all HTTP connections are closed explicitly when we're
20
28
done:
You can’t perform that action at this time.
0 commit comments