• 13
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Force nginx to close connection instantly

How do I let nginx close the tcp connection instantly after the request is fulfilled?

The connection is maintained between the server and the browser thanks to the Keep Alive requests exchanged between them.

You can disable the Keep Alive behavior for a particular user agent: see the nginx manual

keepalive_disable ua

You can probably trick your browser to have a given user agent, having the keep alive cut only for your particular needs.

  • 1
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions