1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

See ChangeLog: Thu Jan 21 06:22:10 CET 1999 Werner Koch

This commit is contained in:
Werner Koch 1999-01-21 05:25:29 +00:00
parent 7debff3867
commit 9ef0f26270
37 changed files with 2779 additions and 3925 deletions

View file

@ -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;