rdmore = 0;
if (connPTR->bufUse >= connPTR->bufSize) {
- edg_wll_SetError(ctx,EINVAL,"HTTP Request too long");
+ edg_wll_SetError(ctx,E2BIG,"HTTP Request too long");
free(connPTR->buf); connPTR->buf = NULL;
connPTR->bufUse = 0;
connPTR->bufSize = 0;
case EPIPE:
case EIO:
case EDG_WLL_IL_PROTO:
+ case E2BIG:
glite_common_log(LOG_CATEGORY_CONTROL, LOG_PRIORITY_WARN,
"[%d] %s (%s)", getpid(), errt, errd);
/* fallthrough
case EPERM:
case EEXIST:
case EDG_WLL_ERROR_NOINDEX:
- case E2BIG:
glite_common_log(LOG_CATEGORY_CONTROL, LOG_PRIORITY_WARN,
"[%d] %s (%s)", getpid(), errt, errd);
break;
if ((err = edg_wll_Proto(ctx,req,hdr,*body,resp,hdrOut,bodyOut,httpErr)))
edg_wll_Error(ctx,NULL,&err_desc);
}
+ else
+ asprintf(resp,"HTTP/1.1 %d %s", HTTP_BADREQ, edg_wll_HTTPErrorMessage(HTTP_BADREQ));
+
free(req);
if (hdr) {