The new name is consistent with the ngx_proxy_protocol_write function.
u_char *
-ngx_proxy_protocol_parse(ngx_connection_t *c, u_char *buf, u_char *last)
+ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf, u_char *last)
{
size_t len;
u_char ch, *p, *addr;
#define NGX_PROXY_PROTOCOL_MAX_HEADER 107
-u_char *ngx_proxy_protocol_parse(ngx_connection_t *c, u_char *buf,
+u_char *ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf,
u_char *last);
u_char *ngx_proxy_protocol_write(ngx_connection_t *c, u_char *buf,
u_char *last);
if (hc->proxy_protocol) {
hc->proxy_protocol = 0;
- p = ngx_proxy_protocol_parse(c, b->pos, b->last);
+ p = ngx_proxy_protocol_read(c, b->pos, b->last);
if (p == NULL) {
ngx_http_close_connection(c);
if (hc->proxy_protocol) {
hc->proxy_protocol = 0;
- p = ngx_proxy_protocol_parse(c, buf, buf + n);
+ p = ngx_proxy_protocol_read(c, buf, buf + n);
if (p == NULL) {
ngx_http_close_connection(c);
log = sc->connection->log;
log->action = "reading PROXY protocol";
- pos = ngx_proxy_protocol_parse(sc->connection, pos, end);
+ pos = ngx_proxy_protocol_read(sc->connection, pos, end);
log->action = "processing SPDY";