MCPcopy Create free account
hub / github.com/mhammond/pywin32 / IsKeepConn

Method IsKeepConn

isapi/src/PyExtensionObjects.cpp:713–727  ·  view source on GitHub ↗

@pymethod int|EXTENSION_CONTROL_BLOCK|IsKeepConn|Calls ServerSupportFunction with HSE_REQ_IS_KEEP_CONN

Source from the content-addressed store, hash-verified

711
712// @pymethod int|EXTENSION_CONTROL_BLOCK|IsKeepConn|Calls ServerSupportFunction with HSE_REQ_IS_KEEP_CONN
713PyObject * PyECB::IsKeepConn(PyObject *self, PyObject *args)
714{
715 if (!PyArg_ParseTuple(args, ":IsKeepConn"))
716 return NULL;
717
718 PyECB * pecb = (PyECB *) self;
719 if (!pecb || !pecb->Check()) return NULL;
720 BOOL bRes, bIs;
721 Py_BEGIN_ALLOW_THREADS
722 bRes = pecb->m_pcb->IsKeepConn(&bIs);
723 Py_END_ALLOW_THREADS
724 if (!bRes)
725 return SetPyECBError("ServerSupportFunction(HSE_REQ_IS_KEEP_CONN)");
726 return PyBool_FromLong(bIs);
727}
728
729// @pymethod int|EXTENSION_CONTROL_BLOCK|ExecURL|Calls ServerSupportFunction with HSE_REQ_EXEC_URL
730// @comm This function is only available in IIS6 and later.

Callers

nothing calls this directly

Calls 2

SetPyECBErrorFunction · 0.85
CheckMethod · 0.45

Tested by

no test coverage detected