summaryrefslogtreecommitdiff
path: root/lib/pingpong.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-25 17:23:33 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-26 10:12:59 +0100
commit7173fe98ba153c6b148bbbf98c08a7ae5ce69f60 (patch)
tree23e7e553be9d1f16b96ba593ae42358b506266ae /lib/pingpong.h
parent1dc8aa870e879d3b2ff0334cdb11842d6321d61f (diff)
downloadcurl-7173fe98ba153c6b148bbbf98c08a7ae5ce69f60.tar.gz
pingpong: remove the 'conn' struct member
... as it's superfluous now when Curl_easy is passed in and we can derive the connection from that instead and avoid the duplicate copy. Closes #6525
Diffstat (limited to 'lib/pingpong.h')
-rw-r--r--lib/pingpong.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pingpong.h b/lib/pingpong.h
index 9a0431b42..4f7d7ea6b 100644
--- a/lib/pingpong.h
+++ b/lib/pingpong.h
@@ -62,7 +62,6 @@ struct pingpong {
off, used to time-out response reading */
timediff_t response_time; /* When no timeout is given, this is the amount of
milliseconds we await for a server response. */
- struct connectdata *conn; /* the connection */
struct dynbuf sendbuf;
/* Function pointers the protocols MUST implement and provide for the
@@ -78,7 +77,6 @@ struct pingpong {
pp->response_time = RESP_TIMEOUT; \
pp->statemachine = s; \
pp->endofresp = e; \
- pp->conn = conn; \
} while(0)
/*
@@ -149,7 +147,8 @@ CURLcode Curl_pp_flushsend(struct Curl_easy *data,
/* call this when a pingpong connection is disconnected */
CURLcode Curl_pp_disconnect(struct pingpong *pp);
-int Curl_pp_getsock(struct pingpong *pp, curl_socket_t *socks);
+int Curl_pp_getsock(struct Curl_easy *data, struct pingpong *pp,
+ curl_socket_t *socks);
/***********************************************************************