Compare commits

..
Author SHA1 Message Date
z3APA3A 5ef18c48f1 bugfix: archiver doesn't add suffix if logname contains macro 2015-06-05 15:55:43 +03:00
z3APA3A c3871caf2a traffic displayed incorrectly 2015-06-03 15:35:33 +03:00
z3APA3A f649c7d4de publish as 0.7.1.2 2015-02-27 16:52:46 +03:00
z3APA3A 0a14a3bcdb Increase maximum request / header length limit 2015-02-17 16:09:13 +03:00
z3APA3A 17665e1f8e Correct error handling for thread creation
Error handling corrected for thread creation in case of e.g.
insufficient system resources.
2014-08-15 18:48:06 +04:00
5 changed files with 16 additions and 13 deletions

No files matched your search

+1 -2
View File
@@ -360,9 +360,8 @@ unsigned char * dologname (unsigned char *buf, unsigned char *name, const unsign
memset(&fakecli, 0, sizeof(fakecli));
dobuf2(&fakecli, buf, NULL, NULL, ts, (char *)name);
return buf;
}
switch(lt){
else switch(lt){
case NONE:
sprintf((char *)buf, "%s", name);
break;
+2 -2
View File
@@ -132,8 +132,8 @@ char * proxy_stringtable[] = {
NULL
};
#define BUFSIZE 4096
#define LINESIZE 2048
#define LINESIZE 4096
#define BUFSIZE (LINESIZE*2)
static void logurl(struct clientparam * param, char * buf, char * req, int ftp){
char *sb;
+9 -5
View File
@@ -460,22 +460,26 @@ int MODULEMAINFUNC (int argc, char** argv){
#else
h = (HANDLE)CreateThread((LPSECURITY_ATTRIBUTES )NULL, (unsigned)32768, (BEGINTHREADFUNC)srv.pf, (void *) newparam, 0, &thread);
#endif
newparam->threadid = (unsigned)thread;
srv.childcount++;
if (h) {
srv.childcount++;
newparam->threadid = (unsigned)thread;
CloseHandle(h);
}
else {
myfree(newparam);
sprintf((char *)buf, "_beginthreadex(): %s", _strerror(NULL));
if(!srv.silent)(*srv.logfunc)(&defparam, buf);
freeparam(newparam);
}
#else
if((error = pthread_create(&thread, &pa, (PTHREADFUNC)srv.pf, (void *)newparam))){
error = pthread_create(&thread, &pa, (PTHREADFUNC)srv.pf, (void *)newparam);
srv.childcount++;
if(error){
sprintf((char *)buf, "pthread_create(): %s", strerror(error));
if(!srv.silent)(*srv.logfunc)(&defparam, buf);
freeparam(newparam);
}
else {
srv.childcount++;
newparam->threadid = (unsigned)thread;
}
#endif
+2 -2
View File
@@ -1,2 +1,2 @@
#define VERSION "3proxy-0.7.1.1"
#define BUILDDATE "140702135419"
#define VERSION "3proxy-0.7.1.2"
#define BUILDDATE "150217161415"
+2 -2
View File
@@ -480,9 +480,9 @@ void * adminchild(struct clientparam* param) {
"<td>MB%s</td>"
"<td>%.3f MB</td>"
"<td>%s</td>",
(1024.0 * (float)cp->traflimgb) + (float)cp->traflim/1048576.0,
(4 * 1024.0 * (float)cp->traflimgb) + (float)cp->traflim/(1024.*1024.),
rotations[cp->type],
(1024.0 * (float)cp->trafgb) + (float)cp->traf/1048576.0,
(4 * 1024.0 * (float)cp->trafgb) + (float)cp->traf/(1024.*1024.),
cp->cleared?ctime(&cp->cleared):"never"
);
inbuf += sprintf(buf + inbuf,