Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb13d37fa0 |
@@ -571,9 +571,12 @@ func (rq *request) responseReceived() {
|
||||
rq.stopTimers()
|
||||
}
|
||||
|
||||
// setResponseDeadline sends the status and headers of the app's answer, with
|
||||
// at least minSendTime, before ReverseProxy reads the answer's body, and then
|
||||
// the rest has until SWRP_MAX_RESPONSE_TIME_MS after the end of the request.
|
||||
// setResponseDeadline sets SWRP_MAX_RESPONSE_TIME_MS on the connection to the
|
||||
// visitor once ReverseProxy has written the status of the app's answer: the
|
||||
// answer must reach the visitor within it of the end of the request. First it
|
||||
// sends the status and headers, with minSendTime at least, before ReverseProxy
|
||||
// reads the body: the time running out can still cut the answer off, but the
|
||||
// visitor never gets a closed connection with no answer at all.
|
||||
func (rq *request) setResponseDeadline() {
|
||||
limit := rq.h.config.MaxResponseTime
|
||||
if limit == 0 {
|
||||
|
||||
Reference in new issue
Block a user