aboutsummaryrefslogtreecommitdiffstats
path: root/util/http.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-01-21 05:25:29 +0000
committerWerner Koch <[email protected]>1999-01-21 05:25:29 +0000
commit9ef0f26270cb4c21686b69f34cb8768cb7a22e5d (patch)
tree976c623aa7666cd3578725dbb600efc971a40e7f /util/http.c
parentSee ChangeLog: Wed Jan 20 18:59:49 CET 1999 Werner Koch (diff)
downloadgnupg-9ef0f26270cb4c21686b69f34cb8768cb7a22e5d.tar.gz
gnupg-9ef0f26270cb4c21686b69f34cb8768cb7a22e5d.zip
See ChangeLog: Thu Jan 21 06:22:10 CET 1999 Werner KochV0-9-2
Diffstat (limited to '')
-rw-r--r--util/http.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/http.c b/util/http.c
index 4f04b62e9..408209213 100644
--- a/util/http.c
+++ b/util/http.c
@@ -118,14 +118,14 @@ http_wait_response( HTTP_HD hd, unsigned int *ret_status )
http_start_data( hd ); /* make sure that we are in the data */
iobuf_flush( hd->fp_write );
- shutdown( hd->socket, 1 );
- hd->in_data = 0;
hd->socket = dup( hd->socket );
if( hd->socket == -1 )
return G10ERR_GENERAL;
iobuf_close( hd->fp_write );
hd->fp_write = NULL;
+ shutdown( hd->socket, 1 );
+ hd->in_data = 0;
hd->fp_read = iobuf_fdopen( hd->socket , "r" );
if( !hd->fp_read )
@@ -674,6 +674,7 @@ write_server( int socket, const char *data, size_t length )
select(0, NULL, NULL, NULL, &tv);
continue;
}
+ log_info("write failed: %s\n", strerror(errno));
return G10ERR_NETWORK;
}
nleft -=nwritten;