From 9ef0f26270cb4c21686b69f34cb8768cb7a22e5d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 21 Jan 1999 05:25:29 +0000 Subject: See ChangeLog: Thu Jan 21 06:22:10 CET 1999 Werner Koch --- util/http.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util/http.c') 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; -- cgit v1.2.3