fds[1].events = POLLIN | POLLPRI | POLLHUP | POLLERR;
fds[1].revents = 0;
+ LOG(DEBUG, "transfer_data(): %d -> %d", client, server);
+
for (;;) {
int result = poll(fds, 2 /* fd count */, -1 /* no timeout */);
if (result < 0) {
ssize_t size_written;
char buffer[4096];
- LOG(DEBUG, "read_from_write_to(): %d -> %d", from, to);
-
size_read = read(from, buffer, sizeof(buffer));
if (size_read < 0) {
LOG_PERROR(WARNING, "read_from_write_to(): read()");
char buffer[16384];
if (buffer_size > sizeof(buffer)) {
+ LOG(WARNING, "read_from_write_to_tls(): reduced buffer size to %ld",
+ (long int)(sizeof(buffer)));
buffer_size = sizeof(buffer);
}
- LOG(DEBUG, "read_from_write_to_tls(): used buffer size: %ld",
- (long int)buffer_size);
size_read = gnutls_record_recv(from, buffer, buffer_size);
if (size_read < 0) {