# nginx 剖析 request_time和upstream_response_time的误区、区别

By | 2021年1月14日

[隐藏]

### 首先，澄清一个误区

upstream_response_time必须在upstream配置时才能使用？

### request_time

keeps time spent on establishing a connection with the upstream server (1.9.1); the time is kept in seconds with millisecond resolution. In case of SSL, includes time spent on handshake. Times of several connections are separated by commas and colons like addresses in the $upstream_addr variable. 跟后端server建立连接的时间，如果是到后端使用了加密的协议，该时间将包括握手的时间。$upstream_header_time(1.7.10)：