Compare commits

..
1 Commits
Author SHA1 Message Date
z3APA3A 20997d759d publishing as 0.7.1 2014-06-28 18:03:52 +04:00
5 changed files with 11 additions and 20 deletions

No files matched your search

+2 -6
View File
@@ -19,9 +19,7 @@ LDFLAGS = -Wall -O2 -pthread
DLFLAGS = -shared
DLSUFFICS = .ld.so
# -lpthreads may be reuqired on some platforms instead of -pthreads
#LIBS = -lcrypto -lssl -ldl
# libcrypto and libssl are required for SSLPlugin
LIBS = -ldl
LIBS = -lcrypto -lssl -ldl
LNOUT = -o
EXESUFFICS =
OBJSUFFICS = .o
@@ -31,9 +29,7 @@ REMOVECOMMAND = rm -f
TYPECOMMAND = cat
COMPATLIBS =
MAKEFILE = Makefile.Linux
#PLUGINS = SSLPlugin StringsPlugin TrafficPlugin PCREPlugin TransparentPlugin
# SSLPlugin is not built by default because of external dependencies
PLUGINS = StringsPlugin TrafficPlugin PCREPlugin TransparentPlugin
PLUGINS = SSLPlugin StringsPlugin TrafficPlugin PCREPlugin TransparentPlugin
include Makefile.inc
-1
View File
@@ -9,7 +9,6 @@
#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 LINESIZE 4096
#define BUFSIZE (LINESIZE*2)
#define BUFSIZE 4096
#define LINESIZE 2048
static void logurl(struct clientparam * param, char * buf, char * req, int ftp){
char *sb;
+5 -9
View File
@@ -460,26 +460,22 @@ int MODULEMAINFUNC (int argc, char** argv){
#else
h = (HANDLE)CreateThread((LPSECURITY_ATTRIBUTES )NULL, (unsigned)32768, (BEGINTHREADFUNC)srv.pf, (void *) newparam, 0, &thread);
#endif
srv.childcount++;
newparam->threadid = (unsigned)thread;
if (h) {
newparam->threadid = (unsigned)thread;
srv.childcount++;
CloseHandle(h);
}
else {
sprintf((char *)buf, "_beginthreadex(): %s", _strerror(NULL));
if(!srv.silent)(*srv.logfunc)(&defparam, buf);
freeparam(newparam);
myfree(newparam);
}
#else
error = pthread_create(&thread, &pa, (PTHREADFUNC)srv.pf, (void *)newparam);
srv.childcount++;
if(error){
if((error = pthread_create(&thread, &pa, (PTHREADFUNC)srv.pf, (void *)newparam))){
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"
#define BUILDDATE "140628175321"