Compare commits

..
5 Commits
Author SHA1 Message Date
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
z3APA3A bf04b9465b publishing as 0.7.1.1 2014-07-02 13:57:05 +04:00
z3APA3A 4e92e71349 Resolver linux compilation issues
Do not compile SSLPlugin by default due to external dependencies
add #include <sys/resources.h>
2014-07-02 13:46:00 +04:00
z3APA3A f25c501cb4 publishing as 0.7.1 2014-06-28 18:02:42 +04:00
5 changed files with 20 additions and 11 deletions

No files matched your search

+6 -2
View File
@@ -19,7 +19,9 @@ LDFLAGS = -Wall -O2 -pthread
DLFLAGS = -shared
DLSUFFICS = .ld.so
# -lpthreads may be reuqired on some platforms instead of -pthreads
LIBS = -lcrypto -lssl -ldl
#LIBS = -lcrypto -lssl -ldl
# libcrypto and libssl are required for SSLPlugin
LIBS = -ldl
LNOUT = -o
EXESUFFICS =
OBJSUFFICS = .o
@@ -29,7 +31,9 @@ REMOVECOMMAND = rm -f
TYPECOMMAND = cat
COMPATLIBS =
MAKEFILE = Makefile.Linux
PLUGINS = SSLPlugin StringsPlugin TrafficPlugin PCREPlugin TransparentPlugin
#PLUGINS = SSLPlugin StringsPlugin TrafficPlugin PCREPlugin TransparentPlugin
# SSLPlugin is not built by default because of external dependencies
PLUGINS = StringsPlugin TrafficPlugin PCREPlugin TransparentPlugin
include Makefile.inc
+1
View File
@@ -9,6 +9,7 @@
#include "proxy.h"
#ifndef _WIN32
#include <sys/resource.h>
#ifndef NOPLUGINS
#include <dlfcn.h>
#endif
+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"
#define BUILDDATE "140628175321"
#define VERSION "3proxy-0.7.1.1"
#define BUILDDATE "140702135419"