{"author":"Stefan Eissing","author_email":"stefan@eissing.org","author_time":1749543100,"commit_time":1749622077,"committer":"Daniel Stenberg","committer_email":"daniel@haxx.se","hash":"e39b8c4819f1cddf21c5cc493c80989ec1d28ce2","message":"url: fix connection lifetime checks\n\nThe checks for a connection being \"too long idle\" or \"too old\" where\nrounding down the elapsed time to seconds before comparing to the\nconfigured max values. This caused connections to be reused for up to\n999ms longer than intended.\n\nChange the compares to scale the configured seconds up to ms, so\nconnection will properly be \"too old\" 1 ms after the coonfigured values.\n\nFixes sporadic failures of test1542 on platforms where \"sleep(2)\"\nreturnes before 2 full seconds on the internal clock where passed.\n\nReported-by: Christian Weisgerber\nURL: https://curl.se/mail/lib-2025-06/0004.html\nCloses #17571\n","parents":["f9d8ed63ede3aaab0f26f37d768528a8030b7ad8"],"tree_hash":"8ad5e1105a9bbc901390eb855d17612be6feac8f"}