File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -572,6 +572,13 @@ over UDP sockets.
572
572
Returns a new instance of the :class: `DatagramHandler ` class intended to
573
573
communicate with a remote machine whose address is given by *host * and *port *.
574
574
575
+ .. note :: As UDP is not a streaming protocol, there is no persistent connection
576
+ between an instance of this handler and *host *. For this reason, when using a
577
+ network socket, a DNS lookup might have to be made each time an event is
578
+ logged, which can introduce some latency into the system. If this affects you,
579
+ you can do a lookup yourself and initialize this handler using the looked-up IP
580
+ address rather than the hostname.
581
+
575
582
.. versionchanged :: 3.4
576
583
If ``port `` is specified as ``None ``, a Unix domain socket is created
577
584
using the value in ``host `` - otherwise, a UDP socket is created.
You can’t perform that action at this time.
0 commit comments