comparison src/event/ngx_event_openssl.c @ 6480:f01ab2dbcfdc

Fixed logging.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 31 Mar 2016 02:33:57 +0300
parents 2cd019520210
children 382fc7069e3a
comparison
equal deleted inserted replaced
6479:dc92298b1852 6480:f01ab2dbcfdc
1594 if (send + size > limit) { 1594 if (send + size > limit) {
1595 size = (ssize_t) (limit - send); 1595 size = (ssize_t) (limit - send);
1596 } 1596 }
1597 1597
1598 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, 1598 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
1599 "SSL buf copy: %d", size); 1599 "SSL buf copy: %z", size);
1600 1600
1601 ngx_memcpy(buf->last, in->buf->pos, size); 1601 ngx_memcpy(buf->last, in->buf->pos, size);
1602 1602
1603 buf->last += size; 1603 buf->last += size;
1604 in->buf->pos += size; 1604 in->buf->pos += size;
1666 int n, sslerr; 1666 int n, sslerr;
1667 ngx_err_t err; 1667 ngx_err_t err;
1668 1668
1669 ngx_ssl_clear_error(c->log); 1669 ngx_ssl_clear_error(c->log);
1670 1670
1671 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL to write: %d", size); 1671 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL to write: %uz", size);
1672 1672
1673 n = SSL_write(c->ssl->connection, data, size); 1673 n = SSL_write(c->ssl->connection, data, size);
1674 1674
1675 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL_write: %d", n); 1675 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL_write: %d", n);
1676 1676