Home

Traffic Server Software Developers Kit

Vconnection Functions

INKVConnAbort

Closes a vconnection and specifies that operations being performing were aborted.

Prototype

INKReturnCode INKVConnAbort (INKVConn connp, int error)

Description

Closes the vconnection connp and specifies that the operations it was performing were aborted. The vconnection will be deallocated at some point in the near future, after INKVConnAbort is called. After calling INKVConnClose, a user will not receive any more events from connp. For most vconnections, INKVConnClose and INKVConnAbort perform identical operations; a potential difference is that when a vconnection is aborted, the vconnection implementor can decide to do something special. For example, a vconnection writing a file to disk might decide to delete the file.

Returns

INK_SUCCESS if the connection is successfully aborted.

INK_ERROR if an error occurs.