93181da752075e7c89620a897153d4cec3c8e722,w3af/core/data/url/handlers/keepalive/connection_manager.py,ConnectionManager,get_available_connection,#ConnectionManager#Any#Any#,114

Before Change


                // Store it internally
                self._used_cons.add(conn)
                hostmap = self._hostmap.setdefault(host, set())
                hostmap.add(conn)

                // logging
                msg = "Added %s to pool, current %s pool size: %s"
                debug(msg % (conn, host, conn_total + 1))

After Change


            if conn_total < self.MAX_CONNECTIONS:
                // Create a new connection
                conn = conn_factory(req)
                conn.current_request_start = time.time()

                // Store it internally
                self._used_conns.add(conn)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: andresriancho/w3af
Commit Name: 93181da752075e7c89620a897153d4cec3c8e722
Time: 2018-06-25
Author: andres.riancho@gmail.com
File Name: w3af/core/data/url/handlers/keepalive/connection_manager.py
Class Name: ConnectionManager
Method Name: get_available_connection


Project Name: andresriancho/w3af
Commit Name: 93181da752075e7c89620a897153d4cec3c8e722
Time: 2018-06-25
Author: andres.riancho@gmail.com
File Name: w3af/core/data/url/handlers/keepalive/connection_manager.py
Class Name: ConnectionManager
Method Name: replace_connection


Project Name: eth-cscs/reframe
Commit Name: 0f1c2a98960c6e3ba8d48e4f00ad358ccb204f07
Time: 2020-09-15
Author: karakasis@cscs.ch
File Name: reframe/core/schedulers/pbs.py
Class Name: PbsJobScheduler
Method Name: _poll_job