aboutsummaryrefslogtreecommitdiff
path: root/src/IO/http.c
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-01-13 15:21:46 +0100
committerSebastian Geerken <devnull@localhost>2013-01-13 15:21:46 +0100
commit5797bbb234071775fe6148a29c9224c04912c8c1 (patch)
tree4bd03596f875f886f7951e43526341b128c087c7 /src/IO/http.c
parent657daf90e9a24bfeb3c38aca2682b5f36d86dff3 (diff)
parent927887827f2a440f1f1b39e58d87b12154098d4a (diff)
Update with main repo.
Diffstat (limited to 'src/IO/http.c')
-rw-r--r--src/IO/http.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/IO/http.c b/src/IO/http.c
index 3e87f912..bb4bca15 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -210,17 +210,6 @@ static void Http_socket_free(int SKey)
}
/*
- * Close the socket's FD
- */
-static void Http_socket_close(SocketData_t *S)
-{
- int st;
- do
- st = close(S->SockFD);
- while (st < 0 && errno == EINTR);
-}
-
-/*
* Make the HTTP header's Referer line according to preferences
* (default is "host" i.e. "scheme://hostname/" )
*/
@@ -448,7 +437,7 @@ static int Http_connect_socket(ChainLink *Info)
status = connect(S->SockFD, (struct sockaddr *)&name, socket_len);
if (status == -1 && errno != EINPROGRESS) {
S->Err = errno;
- Http_socket_close(S);
+ dClose(S->SockFD);
MSG("Http_connect_socket ERROR: %s\n", dStrerror(S->Err));
} else {
a_Chain_bcb(OpSend, Info, &S->SockFD, "FD");