Ns_ConnClose(3aolserver)

Ns_ConnClose3aolserver

Close an open connection

Usage

#include "ns.h"

int
Ns_ConnClose(conn)

    


    

Arguments

Ns_Conn conn (in)

Pointer to open connection.


    


            

Overview

This function calls the connection's communication driver to close the connection if it is not already closed. It always returns NS_OK.

If the connection is marked for keep-alive, the underlying connection is not actually closed but instead returned to the driver thread to process additional requests, if any. Connections are automatically marked for keep-alive by setting the NS_CONN_KEEPALIVE flag if the client supports it by sending an appropriate connection-keepalive header. Keep alive can be disabled before a call to Ns_ConnClose with the Ns_ConnSetKeepAliveFlag routine with a zero value for the flag argument.

Keywords

connection, close, keep-alive

Releases

Unchanged in 5 releases since Debian 5.0 (Lenny).

  1. 5.0–9

From aolserver4-dev 4.5.1-18.1 in Debian 9 (Stretch). Parsed by carta from the page's man source.