]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Httpx now has a socket_options parameter in its NetworkBackends.
authorBob Halley <halley@dnspython.org>
Sun, 28 May 2023 20:58:27 +0000 (13:58 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 28 May 2023 20:58:27 +0000 (13:58 -0700)
We accept this parameter if it is given, but do not actually do
anything with it.  In theory this shouldn't be a problem as we're
never passing it either in the cases where we use our backends.

dns/_asyncio_backend.py
dns/_trio_backend.py
dns/query.py

index 4a26d7c182d9690db4a4d7b2f04bb1db0c92e452..0f16370317e9b7072c9d744c573113ec56b18181 100644 (file)
@@ -142,7 +142,7 @@ try:
                 )
 
         async def connect_tcp(
-            self, host, port, timeout, local_address
+            self, host, port, timeout, local_address, socket_options=None
         ):  # pylint: disable=signature-differs
             addresses = []
             _, expiration = _compute_times(timeout)
@@ -175,7 +175,7 @@ try:
             raise httpcore.ConnectError
 
         async def connect_unix_socket(
-            self, path, timeout
+            self, path, timeout, socket_options=None
         ):  # pylint: disable=signature-differs
             raise NotImplementedError
 
index 761992301eacc46813b329d5cdd9c6d6e73ec22d..ff5da9eb12d378831ea468c0901f7a8f4d9bf9b4 100644 (file)
@@ -112,7 +112,7 @@ try:
             self._family = family
 
         async def connect_tcp(
-            self, host, port, timeout, local_address
+            self, host, port, timeout, local_address, socket_options=None
         ):  # pylint: disable=signature-differs
             addresses = []
             _, expiration = _compute_times(timeout)
@@ -148,7 +148,7 @@ try:
             raise httpcore.ConnectError
 
         async def connect_unix_socket(
-            self, path, timeout
+            self, path, timeout, socket_options=None
         ):  # pylint: disable=signature-differs
             raise NotImplementedError
 
index 1a1b566d85041fceac9f0a216ea00cb412bc7f61..c6b05610a2b35b97e894034b696c272ea510a7dc 100644 (file)
@@ -84,7 +84,7 @@ try:
             self._family = family
 
         def connect_tcp(
-            self, host, port, timeout, local_address
+            self, host, port, timeout, local_address, socket_options=None
         ):  # pylint: disable=signature-differs
             addresses = []
             _, expiration = _compute_times(timeout)
@@ -123,7 +123,7 @@ try:
             raise httpcore.ConnectError
 
         def connect_unix_socket(
-            self, path, timeout
+            self, path, timeout, socket_options=None
         ):  # pylint: disable=signature-differs
             raise NotImplementedError