Separate connect/read timeouts in pylinkahead.ini
2 unresolved threads
2 unresolved threads
Compare changes
Files
7@@ -39,7 +39,7 @@ from requests.adapters import HTTPAdapter
@@ -422,8 +422,10 @@ def configure_connection(**kwargs):
@@ -465,21 +467,29 @@ def configure_connection(**kwargs):
- Comment on lines -468 to +489
The timeout option cannot be retrieved as an int anymore, so it needs to be extracted in a new option category. We reuse the parsing already implemented in config_to_yaml.
int_opts is now empty, but I did not remove it as we might introduce new options that are integers. Please recheck if this should be removed anyways and re-implemented if needed.
Additionally, I was wondering whether there are any reasons not to also defer the parsing of int_opts and bool_opts to config_to_yaml - this would have the advantage that all parsing would be done in one method, making future changes easier and the code here simpler. If this would make sense, I can add it to this MR.