diff --git a/redis/_parsers/resp3.py b/redis/_parsers/resp3.py
index ad766a8..569e7ee 100644
--- a/redis/_parsers/resp3.py
+++ b/redis/_parsers/resp3.py
@@ -96,8 +96,9 @@ class _RESP3Parser(_RESPBase):
                 pass
         # map response
         elif byte == b"%":
-            # we use this approach and not dict comprehension here
-            # because this dict comprehension fails in python 3.7
+            # We cannot use a dict-comprehension to parse stream.
+            # Evaluation order of key:val expression in dict comprehension only
+            # became defined to be left-right in version 3.8
             resp_dict = {}
             for _ in range(int(response)):
                 key = self._read_response(disable_decoding=disable_decoding)
@@ -225,12 +226,16 @@ class _AsyncRESP3Parser(_AsyncRESPBase):
                 pass
         # map response
         elif byte == b"%":
-            response = {
-                (await self._read_response(disable_decoding=disable_decoding)): (
-                    await self._read_response(disable_decoding=disable_decoding)
+            # We cannot use a dict-comprehension to parse stream.
+            # Evaluation order of key:val expression in dict comprehension only
+            # became defined to be left-right in version 3.8
+            resp_dict = {}
+            for _ in range(int(response)):
+                key = await self._read_response(disable_decoding=disable_decoding)
+                resp_dict[key] = await self._read_response(
+                    disable_decoding=disable_decoding, push_request=push_request
                 )
-                for _ in range(int(response))
-            }
+            response = resp_dict
         # push response
         elif byte == b">":
             response = [
diff --git a/redis/asyncio/connection.py b/redis/asyncio/connection.py
index 7b04434..7731221 100644
--- a/redis/asyncio/connection.py
+++ b/redis/asyncio/connection.py
@@ -880,6 +880,7 @@ URL_QUERY_ARGUMENT_PARSERS: Mapping[str, Callable[..., object]] = MappingProxyTy
         "max_connections": int,
         "health_check_interval": int,
         "ssl_check_hostname": to_bool,
+        "timeout": float,
     }
 )
 
diff --git a/redis/connection.py b/redis/connection.py
index b39ba28..fead613 100644
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -853,6 +853,7 @@ URL_QUERY_ARGUMENT_PARSERS = {
     "max_connections": int,
     "health_check_interval": int,
     "ssl_check_hostname": to_bool,
+    "timeout": float,
 }
 
 

diff --git a/tests/test_asyncio/test_connection_pool.py b/tests/test_asyncio/test_connection_pool.py
index c93fa91..ed90fc7 100644
--- a/tests/test_asyncio/test_connection_pool.py
+++ b/tests/test_asyncio/test_connection_pool.py
@@ -454,6 +454,31 @@ class TestConnectionPoolURLParsing:
         )
 
 
+class TestBlockingConnectionPoolURLParsing:
+    def test_extra_typed_querystring_options(self):
+        pool = redis.BlockingConnectionPool.from_url(
+            "redis://localhost/2?socket_timeout=20&socket_connect_timeout=10"
+            "&socket_keepalive=&retry_on_timeout=Yes&max_connections=10&timeout=13.37"
+        )
+
+        assert pool.connection_class == redis.Connection
+        assert pool.connection_kwargs == {
+            "host": "localhost",
+            "db": 2,
+            "socket_timeout": 20.0,
+            "socket_connect_timeout": 10.0,
+            "retry_on_timeout": True,
+        }
+        assert pool.max_connections == 10
+        assert pool.timeout == 13.37
+
+    def test_invalid_extra_typed_querystring_options(self):
+        with pytest.raises(ValueError):
+            redis.BlockingConnectionPool.from_url(
+                "redis://localhost/2?timeout=_not_a_float_"
+            )
+
+
 class TestConnectionPoolUnixSocketURLParsing:
     def test_defaults(self):
         pool = redis.ConnectionPool.from_url("unix:///socket")
diff --git a/tests/test_connection_pool.py b/tests/test_connection_pool.py
index ef70a8f..d1e984e 100644
--- a/tests/test_connection_pool.py
+++ b/tests/test_connection_pool.py
@@ -359,6 +359,31 @@ class TestConnectionPoolURLParsing:
         )
 
 
+class TestBlockingConnectionPoolURLParsing:
+    def test_extra_typed_querystring_options(self):
+        pool = redis.BlockingConnectionPool.from_url(
+            "redis://localhost/2?socket_timeout=20&socket_connect_timeout=10"
+            "&socket_keepalive=&retry_on_timeout=Yes&max_connections=10&timeout=42"
+        )
+
+        assert pool.connection_class == redis.Connection
+        assert pool.connection_kwargs == {
+            "host": "localhost",
+            "db": 2,
+            "socket_timeout": 20.0,
+            "socket_connect_timeout": 10.0,
+            "retry_on_timeout": True,
+        }
+        assert pool.max_connections == 10
+        assert pool.timeout == 42.0
+
+    def test_invalid_extra_typed_querystring_options(self):
+        with pytest.raises(ValueError):
+            redis.BlockingConnectionPool.from_url(
+                "redis://localhost/2?timeout=_not_a_float_"
+            )
+
+
 class TestConnectionPoolUnixSocketURLParsing:
     def test_defaults(self):
         pool = redis.ConnectionPool.from_url("unix:///socket")

resp3 parser async parser incorrectly parses maps
Issue discovered in pr #2947

the evaulation order of `key:val` in `{key():val() for foo in bar}` dict comprehension is undefined in Python.  It mostly is left-right,
but some versions, notably recent 3.7 versions, don't behave that way.  It is best to use explicit ordering when reading from  a stream.

This had already been fixed for __non-async__ parsing, but in pr #2947 caused some scheduling behaviour which triggered this to happen. A fix for __async__ has been added there.

tests/test_asyncio/test_connection_pool.py::TestBlockingConnectionPoolURLParsing::test_extra_typed_querystring_options tests/test_asyncio/test_connection_pool.py::TestBlockingConnectionPoolURLParsing::test_invalid_extra_typed_querystring_options tests/test_connection_pool.py::TestBlockingConnectionPoolURLParsing::test_extra_typed_querystring_options tests/test_connection_pool.py::TestBlockingConnectionPoolURLParsing::test_invalid_extra_typed_querystring_options
tests/test_asyncio/test_connection_pool.py::TestConnectionPool::test_connection_creation tests/test_asyncio/test_connection_pool.py::TestConnectionPool::test_aclosing tests/test_asyncio/test_connection_pool.py::TestConnectionPool::test_repr_contains_db_info_tcp tests/test_asyncio/test_connection_pool.py::TestConnectionPool::test_repr_contains_db_info_unix tests/test_asyncio/test_connection_pool.py::TestBlockingConnectionPool::test_connection_creation tests/test_asyncio/test_connection_pool.py::TestBlockingConnectionPool::test_disconnect tests/test_asyncio/test_connection_pool.py::TestBlockingConnectionPool::test_multiple_connections tests/test_asyncio/test_connection_pool.py::TestBlockingConnectionPool::test_connection_pool_blocks_until_timeout tests/test_asyncio/test_connection_pool.py::TestBlockingConnectionPool::test_connection_pool_blocks_until_conn_available tests/test_asyncio/test_connection_pool.py::TestBlockingConnectionPool::test_reuse_previously_released_connection tests/test_asyncio/test_connection_pool.py::TestBlockingConnectionPool::test_repr_contains_db_info_tcp tests/test_asyncio/test_connection_pool.py::TestBlockingConnectionPool::test_repr_contains_db_info_unix tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_hostname tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_quoted_hostname tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_port tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_username tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_quoted_username tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_password tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_quoted_password tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_username_and_password tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_db_as_argument tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_db_in_path tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_db_in_querystring tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_extra_typed_querystring_options tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_boolean_parsing tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_client_name_in_querystring tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_invalid_extra_typed_querystring_options tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_extra_querystring_options tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_calling_from_subclass_returns_correct_instance tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_client_creates_connection_pool tests/test_asyncio/test_connection_pool.py::TestConnectionPoolURLParsing::test_invalid_scheme_raises_error tests/test_asyncio/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_defaults tests/test_asyncio/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_username tests/test_asyncio/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_quoted_username tests/test_asyncio/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_password tests/test_asyncio/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_quoted_password tests/test_asyncio/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_quoted_path tests/test_asyncio/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_db_as_argument tests/test_asyncio/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_db_in_querystring tests/test_asyncio/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_client_name_in_querystring tests/test_asyncio/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_extra_querystring_options tests/test_asyncio/test_connection_pool.py::TestSSLConnectionURLParsing::test_host tests/test_asyncio/test_connection_pool.py::TestSSLConnectionURLParsing::test_cert_reqs_options tests/test_asyncio/test_connection_pool.py::TestConnection::test_on_connect_error tests/test_asyncio/test_connection_pool.py::TestConnection::test_connect_from_url_tcp tests/test_asyncio/test_connection_pool.py::TestConnection::test_connect_from_url_unix tests/test_connection_pool.py::TestConnectionPool::test_connection_creation tests/test_connection_pool.py::TestConnectionPool::test_closing tests/test_connection_pool.py::TestConnectionPool::test_repr_contains_db_info_tcp tests/test_connection_pool.py::TestConnectionPool::test_repr_contains_db_info_unix tests/test_connection_pool.py::TestBlockingConnectionPool::test_connection_creation tests/test_connection_pool.py::TestBlockingConnectionPool::test_multiple_connections tests/test_connection_pool.py::TestBlockingConnectionPool::test_connection_pool_blocks_until_timeout tests/test_connection_pool.py::TestBlockingConnectionPool::test_connection_pool_blocks_until_conn_available tests/test_connection_pool.py::TestBlockingConnectionPool::test_reuse_previously_released_connection tests/test_connection_pool.py::TestBlockingConnectionPool::test_repr_contains_db_info_tcp tests/test_connection_pool.py::TestBlockingConnectionPool::test_repr_contains_db_info_unix tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_hostname tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_quoted_hostname tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_port tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_username tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_quoted_username tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_password tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_quoted_password tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_username_and_password tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_db_as_argument tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_db_in_path tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_db_in_querystring tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_extra_typed_querystring_options tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_boolean_parsing tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_client_name_in_querystring tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_invalid_extra_typed_querystring_options tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_extra_querystring_options tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_calling_from_subclass_returns_correct_instance tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_client_creates_connection_pool tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_invalid_scheme_raises_error tests/test_connection_pool.py::TestConnectionPoolURLParsing::test_invalid_scheme_raises_error_when_double_slash_missing tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_defaults tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_username tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_quoted_username tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_password tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_quoted_password tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_quoted_path tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_db_as_argument tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_db_in_querystring tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_client_name_in_querystring tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_extra_querystring_options tests/test_connection_pool.py::TestConnectionPoolUnixSocketURLParsing::test_connection_class_override tests/test_connection_pool.py::TestSSLConnectionURLParsing::test_host tests/test_connection_pool.py::TestSSLConnectionURLParsing::test_connection_class_override tests/test_connection_pool.py::TestSSLConnectionURLParsing::test_cert_reqs_options tests/test_connection_pool.py::TestConnection::test_on_connect_error tests/test_connection_pool.py::TestConnection::test_connect_from_url_tcp tests/test_connection_pool.py::TestConnection::test_connect_from_url_unix