/* http(s) stream */
gss_cred_id_t gsiCred;
edg_wll_GssConnection gss;
- edg_wll_Connection conn; /* for plain (non-gss) connections - i.e. lbproxy */
char *buf;
int bufUse,bufSize;
void *mysql;
edg_wll_ConnPool *connPool;
edg_wll_ConnPool *connPoolNotif; /* hold _one_ connection from notif-interlogger */
+
edg_wll_Connection *connPlain; /* holds one plain connection */
int semaphores,semset;
for (i=0; i<ctx->poolSize; i++) {
if (ctx->connPool[i].peerName) free(ctx->connPool[i].peerName);
-
- close(ctx->connPool[i].conn.sock);
- if (ctx->connPool[i].conn.buf) free(ctx->connPool[i].conn.buf);
-
edg_wll_gss_close(&ctx->connPool[i].gss,&close_timeout);
if (ctx->connPool[i].gsiCred)
gss_release_cred(&min_stat, &ctx->connPool[i].gsiCred);
}
free(ctx->connPool);
}
- if (ctx->connPlain) {
- if (ctx->connPlain->buf) free(ctx->connPlain->buf);
- free(ctx->connPlain);
+ if ( ctx->connPlain ) {
+ if ( ctx->connPlain->buf ) free(ctx->connPlain->buf);
+ close(ctx->connPlain->sock);
+ free(ctx->connPlain);
}
if (ctx->notifSock >=0) close(ctx->notifSock);
if (ctx->srvName) free(ctx->srvName);
ctx->connPlain->buf+ctx->connPlain->bufUse,
ctx->connPlain->bufSize-ctx->connPlain->bufUse,
&ctx->p_tmp_timeout);
- if ( len < 0 ) goto error;
+ if ( len < 0 ) {
+ edg_wll_SetError(ctx, errno, "edg_wll_plain_read()");
+ goto error;
+ }
ctx->connPlain->bufUse += len;
rdmore = 0;