add: connPtr->nContentSent = 0;
context: AllocConn(Driver *drvPtr, Sock *sockPtr){    Conn *connPtr;    static int nextid = 0;    int id;        Ns_MutexLock(&connlock);    id = nextid++;    connPtr = firstConnPtr;    if (connPtr != NULL) {        firstConnPtr = connPtr->nextPtr;    }    Ns_MutexUnlock(&connlock);    if (connPtr == NULL) {        connPtr = ns_calloc(1, sizeof(Conn));        Tcl_DStringInit(&connPtr->ibuf);        Tcl_DStringInit(&connPtr->obuf);        Tcl_InitHashTable(&connPtr->files, TCL_STRING_KEYS);        connPtr->headers = Ns_SetCreate(NULL);        connPtr->outputheaders = Ns_SetCreate(NULL);        connPtr->drvPtr = drvPtr;        connPtr->tfd = -1;    }    connPtr->id = id;    sprintf(connPtr->idstr, "cns%d", connPtr->id);    connPtr->port = ntohs(sockPtr->sa.sin_port);    strcpy(connPtr->peer, ns_inet_ntoa(sockPtr->sa.sin_addr));    connPtr->times.accept = sockPtr->acceptTime;    connPtr->responseStatus = 0;    connPtr->sockPtr = sockPtr;    return connPtr;}