summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-07-07Use environment variables for addresses used in NetworkTestTobias Markmann
Introducing SWIFT_NETWORK_TEST_IPV4 and SWIFT_NETWORK_TEST_IPV6 for the host addresses used in BoostConnectionTest.cpp. Passing these variables and ASAN/LSAN_OPTIONS for memory leak detection when calling the test from SCons. Test-Information: Tested on Elementary OS with correct available hosts and unavailable hosts. In both cases the behavior is the same as before. Change-Id: I24128c766642c5a2ee273f7c11624525ae33e270
2015-02-09Fix data race in DummyEventLoop and BoostConnection(Server)Test reported by TSANTobias Markmann
The data race is on the events_ member in DummyEventLoop. A BoostIOServerThread can post events to the DummyEventLoop and thereby access its events_ data member while the test's main code processes events of the loop. To prevent access to the DummyEventLoop by the BoostIOServiceThread after the DummyEventLoop is deleted, the BoostIOServiceThread is deleted before the DummyEventLoop. Process remaining events in BoostConnectionTest::tearDown like we do in BoostConnectionServerTest::tearDown. Test-Information: Run multiple times on NetworkTest as TSAN enabled build on Linux. Without the patch it reports a data race for the events_ deque member. Change-Id: I3c85535338fc0ce0263dbfc3534aceb1dd09c137
2014-12-15Update Copyright in SwiftenKevin Smith
Change-Id: I94ab4bbb68c603fe872abeb8090575de042f5cb4
2013-02-11Fixed NetworkTest.Remko Tronçon
Change-Id: I533b3ecf5ddc32f6163d32ad3a9d9d012c981997
2012-12-31Fix more warnings.Remko Tronçon
Change-Id: I0fc27a08adb6aecd5c5775a52b7fe48570ed526a
2011-09-28Pass read data from connection via shared_ptr.Remko Tronçon
This should avoid unnecessary copying of the received data while being processed by the event loop.
2011-05-18Propagate use of SafeByteArray down to the connection.Remko Tronçon
2011-05-05Replace ByteArray by typedef.Remko Tronçon
2011-04-30Replace #icnlude "" by #include <> in Swiften.Remko Tronçon
2011-02-14Removed Swift::String.Remko Tronçon
2011-01-26Make boost io_service a shared object.Remko Tronçon
This should avoid problems when destroying an event loop containing timer or network events, after the network factory (and io_service object) has disappeared (i.e. at shutdown).
2011-01-21Code cleanup.Remko Tronçon
2011-01-15Comply with asio's documentation that we cannot call async_write multiple ↵Remko Tronçon
times simultaniously.
2010-12-17Fixed IPv6 network test.Remko Tronçon
2010-12-06Added IPv6 test.Remko Tronçon
2010-10-27Remove MainEventLoop singleton.Remko Tronçon
The event loop now needs to be explicitly passed to clients using it.
2010-06-18Fix crash on reconnect.Remko Tronçon
BoostTimer isn't supposed to be constructed as a non-shared-ptr. Making constructor private to avoid this error in the future.
2010-04-08Added copyrights to Swiften.Kevin Smith
2010-03-28Moving submodule contents back.Remko Tronçon
2010-03-28Removing submodules.Remko Tronçon
2010-03-28Moved Swiften to a separate module.Remko Tronçon
2009-11-20Fixed connection leak.Remko Tronçon
2009-11-01Moving tests around.Remko Tronçon
2009-09-03Move Swiften QA test into QA module.Remko Tronçon
2009-07-19(Client)Session & Connection refactoring.Remko Tronçon
ClientSession no longer sets up a connection. Connection no longer resolves addresses.
2009-07-15Make stream stack layers reference counted.Remko Tronçon
2009-07-14Make all Connection instances shared_ptrs.Remko Tronçon
2009-07-14Consolidating IncomingConnection & Connection.Remko Tronçon
BoostConnections no longer have their own thread, but are managed from a central Boost IO thread instead.
2009-06-01Import.Remko Tronçon