http->vm_event = vm_event;
- ngx_log_debug1(NGX_LOG_DEBUG_EVENT, log, 0, "js http alloc:%p", http);
+ ngx_log_debug1(NGX_LOG_DEBUG_EVENT, log, 0, "js fetch alloc:%p", http);
return http;
ngx_js_http_close_connection(ngx_connection_t *c)
{
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
- "close js http connection: %d", c->fd);
+ "js fetch close connection: %d", c->fd);
#if (NGX_SSL)
if (c->ssl) {
http = host;
- ngx_log_debug1(NGX_LOG_DEBUG_EVENT, http->log, 0, "js http destructor:%p",
+ ngx_log_debug1(NGX_LOG_DEBUG_EVENT, http->log, 0, "js fetch destructor:%p",
http);
if (http->ctx != NULL) {
addr = &http->addrs[http->naddr];
ngx_log_debug2(NGX_LOG_DEBUG_EVENT, http->log, 0,
- "js http connect %ui/%ui", http->naddr, http->naddrs);
+ "js fetch connect %ui/%ui", http->naddr, http->naddrs);
http->peer.sockaddr = addr->sockaddr;
http->peer.socklen = addr->socklen;
c = http->peer.connection;
ngx_log_debug2(NGX_LOG_DEBUG_EVENT, http->log, 0,
- "js http secure connect %ui/%ui", http->naddr, http->naddrs);
+ "js fetch secure connect %ui/%ui", http->naddr,
+ http->naddrs);
if (ngx_ssl_create_connection(http->ssl, c, NGX_SSL_BUFFER|NGX_SSL_CLIENT)
!= NGX_OK)
if (rc != X509_V_OK) {
ngx_log_error(NGX_LOG_ERR, c->log, 0,
- "js http fetch SSL certificate verify "
- "error: (%l:%s)", rc,
- X509_verify_cert_error_string(rc));
+ "js fetch SSL certificate verify error: (%l:%s)",
+ rc, X509_verify_cert_error_string(rc));
goto failed;
}
if (ngx_ssl_check_host(c, &http->tls_name) != NGX_OK) {
ngx_log_error(NGX_LOG_ERR, c->log, 0,
- "js http SSL certificate does not match \"%V\"",
+ "js fetch SSL certificate does not match \"%V\"",
&http->tls_name);
goto failed;
}
name->data = p;
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, http->log, 0,
- "js http SSL server name: \"%s\"", name->data);
+ "js fetch SSL server name: \"%s\"", name->data);
if (SSL_set_tlsext_host_name(http->peer.connection->ssl->connection,
(char *) name->data)
static void
ngx_js_http_next(ngx_js_http_t *http)
{
- ngx_log_debug0(NGX_LOG_DEBUG_EVENT, http->log, 0, "js http next");
+ ngx_log_debug0(NGX_LOG_DEBUG_EVENT, http->log, 0, "js fetch next addr");
if (++http->naddr >= http->naddrs) {
ngx_js_http_error(http, 0, "connect failed");
c = wev->data;
http = c->data;
- ngx_log_debug0(NGX_LOG_DEBUG_EVENT, wev->log, 0, "js http write handler");
+ ngx_log_debug0(NGX_LOG_DEBUG_EVENT, wev->log, 0, "js fetch write handler");
if (wev->timedout) {
ngx_js_http_error(http, NGX_ETIMEDOUT, "write timed out");
c = rev->data;
http = c->data;
- ngx_log_debug0(NGX_LOG_DEBUG_EVENT, rev->log, 0, "js http read handler");
+ ngx_log_debug0(NGX_LOG_DEBUG_EVENT, rev->log, 0, "js fetch read handler");
if (rev->timedout) {
ngx_js_http_error(http, NGX_ETIMEDOUT, "read timed out");
rc = ngx_js_http_parse_status_line(hp, http->buffer);
if (rc == NGX_OK) {
- ngx_log_debug1(NGX_LOG_DEBUG_EVENT, http->log, 0, "js http status %ui",
+ ngx_log_debug1(NGX_LOG_DEBUG_EVENT, http->log, 0, "js fetch status %ui",
hp->code);
http->response.code = hp->code;
ngx_js_http_parse_t *hp;
ngx_log_debug0(NGX_LOG_DEBUG_EVENT, http->log, 0,
- "js http process headers");
+ "js fetch process headers");
hp = &http->http_parse;
}
ngx_log_debug4(NGX_LOG_DEBUG_EVENT, http->log, 0,
- "js http header \"%*s: %*s\"",
+ "js fetch header \"%*s: %*s\"",
len, hp->header_name_start, vlen, hp->header_start);
if (len == njs_strlen("Transfer-Encoding")
ngx_buf_t *b;
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, http->log, 0,
- "js http process body done:%ui", (ngx_uint_t) http->done);
+ "js fetch process body done:%ui", (ngx_uint_t) http->done);
if (http->done) {
size = njs_chb_size(&http->response.chain);
static void
ngx_js_http_dummy_handler(ngx_event_t *ev)
{
- ngx_log_debug0(NGX_LOG_DEBUG_EVENT, ev->log, 0, "js http dummy handler");
+ ngx_log_debug0(NGX_LOG_DEBUG_EVENT, ev->log, 0, "js fetch dummy handler");
}