diegows / wanproxy Goto Github PK
View Code? Open in Web Editor NEWMy Wanproxy repo - WAN Accelerator using dictionary and gzip compression.
Home Page: http://www.wanproxy.org/
License: Other
My Wanproxy repo - WAN Accelerator using dictionary and gzip compression.
Home Page: http://www.wanproxy.org/
License: Other
In the configuration. If one of them is missing, the behavior is undefined.
Hello,
compilation from master branch fails. Since it seems to fail in the epoll section, I have checked it also with the " USE_POLL=poll" as mentioned in #1 but I get the same result.
This is the error output:
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o callback.o ../../../event/callback.cc
In file included from ../../../event/event_poll.h:32:0,
from ../../../event/event_system.h:29,
from ../../../event/callback.cc:27:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o callback_thread.o ../../../event/callback_thread.cc
In file included from ../../../event/callback_thread.h:31:0,
from ../../../event/callback_thread.cc:26:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o event_main.o ../../../event/event_main.cc
In file included from ../../../event/event_poll.h:32:0,
from ../../../event/event_system.h:29,
from ../../../event/event_main.cc:28:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o event_poll.o ../../../event/event_poll.cc
In file included from ../../../event/event_poll.h:32:0,
from ../../../event/event_poll.cc:27:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o event_thread.o ../../../event/event_thread.cc
In file included from ../../../event/callback_thread.h:31:0,
from ../../../event/event_thread.h:32,
from ../../../event/event_thread.cc:27:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o timeout_queue.o ../../../event/timeout_queue.cc
../../../event/timeout_queue.cc: In member function ‘Action* TimeoutQueue::append(uintmax_t, SimpleCallback_)’:
../../../event/timeout_queue.cc:36:11: warning: declaration of ‘deadline’ shadows a member of 'this' [-Wshadow]
NanoTime deadline = NanoTime::current_time();
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o timeout_thread.o ../../../event/timeout_thread.cc
In file included from ../../../event/timeout_thread.h:29:0,
from ../../../event/timeout_thread.cc:39:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o event_poll_poll.o ../../../event/event_poll_poll.cc
In file included from ../../../event/event_poll.h:32:0,
from ../../../event/event_poll_poll.cc:34:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
../../../event/event_poll_poll.cc: In constructor ‘EventPoll::EventPoll()’:
../../../event/event_poll_poll.cc:40:14: error: no matching function for call to ‘Thread::Thread()’
state_(NULL)
^
../../../event/event_poll_poll.cc:40:14: note: candidates are:
In file included from ../../../event/event_poll.h:32:0,
from ../../../event/event_poll_poll.cc:34:
../../../common/thread/thread.h:42:2: note: Thread::Thread(const string&)
Thread(const std::string&);
^
../../../common/thread/thread.h:42:2: note: candidate expects 1 argument, 0 provided
../../../common/thread/thread.h:34:7: note: Thread::Thread(const Thread&)
class Thread {
^
../../../common/thread/thread.h:34:7: note: candidate expects 1 argument, 0 provided
../../../event/event_poll_poll.cc:40:14: error: no matching function for call to ‘Mutex::Mutex()’
state_(NULL)
^
../../../event/event_poll_poll.cc:40:14: note: candidates are:
In file included from ../../../event/event_poll.h:31:0,
from ../../../event/event_poll_poll.cc:34:
../../../common/thread/mutex.h:39:2: note: Mutex::Mutex(const string&)
Mutex(const std::string&);
^
../../../common/thread/mutex.h:39:2: note: candidate expects 1 argument, 0 provided
../../../common/thread/mutex.h:34:7: note: Mutex::Mutex(const Mutex&)
class Mutex : public Lock {
^
../../../common/thread/mutex.h:34:7: note: candidate expects 1 argument, 0 provided
../../../event/event_poll_poll.cc: At global scope:
../../../event/event_poll_poll.cc:96:23: error: no ‘void EventPoll::wait(int)’ member function declared in class ‘EventPoll’
EventPoll::wait(int ms)
^
make[3]: *_* [event_poll_poll.o] Error 1
make[3]: Leaving directory /tmp/wanproxy/crypto/example/aes128-cbc-speed1' make[2]: *** [all] Error 2 make[2]: Leaving directory
/tmp/wanproxy/crypto/example'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/wanproxy/crypto'
make: *** [all] Error 2
==32113== Syscall param epoll_ctl(event) points to uninitialised byte(s)
==32113== at 0x60F7ECA: epoll_ctl (syscall-template.S:82)
==32113== by 0x45BB42: EventPoll::poll(EventPoll::Type const&, int, TypedCallback<Event>*) (event_poll_epoll.cc:68)
==32113== by 0x48BC72: Socket::accept_schedule() (event_thread.h:30)
==32113== by 0x48C072: Socket::accept(TypedPairCallback<Event, Socket*>*) (socket.cc:299)
==32113== by 0x41B205: SimpleServer<TCPServer>::SimpleServer(LogHandle, SocketAddressFamily, std::string const&) (tcp_server.h:26)
==32113== by 0x418A80: ProxyListener::ProxyListener(std::string const&, WANProxyCodec*, WANProxyCodec*, SocketAddressFamily, std::string const&, SocketAddressFamily, std::string const&) (proxy_listener.cc:27)
==32113== by 0x430FE8: WANProxyConfigClassProxy::activate(ConfigObject*) (wanproxy_config_class_proxy.cc:141)
==32113== by 0x447D4A: Config::activate(std::string const&) (config.cc:19)
==32113== by 0x42737B: WANProxyConfig::parse_activate(std::deque<std::string, std::allocator<std::string> >&) (wanproxy_config.cc:61)
==32113== by 0x42809A: WANProxyConfig::parse(std::deque<std::string, std::allocator<std::string> >&) (wanproxy_config.cc:39)
==32113== by 0x428FBA: WANProxyConfig::configure(std::string const&) (wanproxy_config.cc:160)
==32113== by 0x421FC1: main (wanproxy.cc:57)
==32113== Address 0x7feffccd8 is on thread 1's stack
Looks like a new check in the GCC version of Ubuntu 12.04. It works on Debian Squeeze.
../../event/event_poll_epoll.cc: In member function ‘Action* EventPoll::poll(const EventPoll::Type&, int, EventCallback*)’:
../../event/event_poll_epoll.cc:57:40: error: enumeral and non-enumeral type in conditional expression [-Werror]
../../event/event_poll_epoll.cc:63:41: error: enumeral and non-enumeral type in conditional expression [-Werror]
../../event/event_poll_epoll.cc: In member function ‘void EventPoll::cancel(const EventPoll::Type&, int)’:
../../event/event_poll_epoll.cc:93:29: error: enumeral and non-enumeral type in conditional expression [-Werror]
../../event/event_poll_epoll.cc:101:29: error: enumeral and non-enumeral type in conditional expression [-Werror]
When Wanproxy can't resolve the peer hostname/FQDN, there is a segmentation fault.
There is a bug in the encoder function, that makes XCodecEncoder::encode() function to call cache lookup() thousand times. for each segment to encode.
When you change a header file, make doesn't recompile anything.
Configuration system should be improved. Right now is too difficult to access to the configuration from everywhere, The configuration must be loaded to a global object which can be accesible from all the code.
The assert the triggered when there is some specific bytes in the stream. I think that the encoder or the decoder isn't correctly handling the EOS byte in the data transferred.
How to reproduce. The linked files trigger the assertion. I configured the Wanproxy server at proxy of the echo server (inetd) and then I transferred the files using netcat to reproduce the error.
It's pending to identify the pattern better, when the linked files help to reproduce.
Hi Diegows
I follow the Installation guild on wiki page, and can't find the branch related to COSS.
And can't load the config file at wiki configuration page.
Which branch should I checkout, or I need to remove COSS related config?
Thanks
TCP server should provide a ready to use socket using a callback. The current implementation with a Template makes it not very flexible.
All the callbacks are scheduled again and again until they are cancelled (remove from the queue). There should be a way to set the callback to run once to make the code simpler.
And may be all the callbacks should run once by default.
If the Wanproxy server has several clients, the COSS file size musn't be the same for the local and remote UUIDs. There should be a good implementation in the configuration and in the COSS code to support these sizes.
May be, we shoud consider to save all the segment in the same file for all the endpoints.
==1731== Thread 2:
==1731== Conditional jump or move depends on uninitialised value(s)
==1731== at 0x566F290: inflateReset2 (in /usr/lib/libz.so.1.2.3.4)
==1731== by 0x566F37F: inflateInit2_ (in /usr/lib/libz.so.1.2.3.4)
==1731== by 0x4A1976: InflatePipe::InflatePipe() (inflate_pipe.cc:20)
==1731== by 0x4226C3: WANProxyCodecPipePair::WANProxyCodecPipePair(WANProxyCodec*, WANProxyCodec*) (wanproxy_codec_pipe_pair.cc:33)
==1731== by 0x4186DD: ProxyListener::client_connected(Socket*) (proxy_listener.cc:36)
==1731== by 0x41ADE1: SimpleServer<TCPServer>::accept_complete(Event, Socket*) (simple_server.h:66)
==1731== by 0x41A3C3: ObjectTypedPairCallback<Event, Socket*, SimpleServer<TCPServer> >::operator()(Event, Socket*) (typed_pair_callback.h:66)
==1731== by 0x418639: TypedPairCallback<Event, Socket*>::execute() (typed_pair_callback.h:34)
==1731== by 0x456E10: EventThread::main() (callback_queue.h:89)
==1731== by 0x44559C: (anonymous namespace)::thread_posix_start(void*) (thread_posix.cc:173)
==1731== by 0x4E2F8C9: start_thread (pthread_create.c:300)
==1731== by 0x60F792C: clone (clone.S:112)
==1731==
Right now, COSS has some simple stats. We must have common code to have stats from all caches.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.