Skip to content

TimeToLive in HttpWebConnection Pooling #161

Description

@Peter0x48

Hi,

in my usecase of HtmlUnit I request a site with a DNS name which has a TTL of 5 seconds and the IP behind the name may changes due to a failover.
It looks like a HTTP Pooling from Apache HttpClient is enabled which would then cause this TTL to be ignored as long as the connection exists.

https://github.com/HtmlUnit/htmlunit/blob/master/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java#L1143

Is that assumption correct? Is there a way to configure the "connTimeToLive" or to disable connection pooling completely?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions