Commit Graph

87 Commits

Author SHA1 Message Date
chris 579d604ac6 getRemoteAddress doesn't work on Android (at least not KitKat), so let's get the address this way. 2016-09-26 17:38:50 +02:00
chris a18f76f864 Cleaning up requested objects from time to time, to work around a leak that sometimes happens. 2016-09-21 19:37:17 +02:00
chris 83abce0f52 Deprecate DefaultNetworkHandler in favor of NioNetworkHandler 2016-09-13 07:25:23 +02:00
chris e6d40cde76 Try to fix tests on travis.
Unfortunately they work fine locally, so there may be several of those attempts.
2016-09-12 11:15:07 +02:00
chris 489b8968e0 Refactored use of the DefaultMessageListener so it's retrieved from the InternalContext 2016-09-12 08:18:30 +02:00
chris a240606909 Minor improvements and fixes 2016-09-05 19:35:36 +02:00
chris dad05d835b Created an improved JdbcNodeRegistry and removed MemoryNodeRegistry, as it doesn't properly work with the way nodes are handled and disseminated in the new PyBitmessage client. The new one should work a lot more stable. 2016-09-01 07:35:46 +02:00
chris 827973f642 Improved connecting to the network 2016-08-29 12:30:26 +02:00
chris 53aa2c6804 Slightly improved the problem with stale objects in the requested objects list. But I don't know how to properly solve it, there may always be some left. 2016-08-25 12:44:06 +02:00
chris caa2219a63 It looks like the NIO network handler works now - some testing needed to see how reliably 2016-08-24 22:17:02 +02:00
chris cd3a801704 Used wrong nonce for version message 2016-08-09 19:50:11 +02:00
chris 505818a712 Added option to connect to local Bitmessage client
(This makes it easier to debug some problem or make some tests)
2016-08-08 18:00:50 +02:00
chris 92229151a5 It seems travis is a bit slow sometimes, so I raised the timeout for the NetworkHandlerTest 2016-07-29 11:47:05 +02:00
chris 334a510743 Fixes, improved tests and other improvements 2016-07-29 07:49:53 +02:00
chris 56ebb7b8fa Better memory management for the out buffer 2016-07-27 07:38:39 +02:00
chris 48ff975ffd Better memory management for the in buffer (the same TODO for the out buffer. 2016-07-25 07:52:27 +02:00
chris 82ee4d05bb Raised test timeout, as the Jacoco run seems to be considerably slower. 2016-07-10 06:55:24 +02:00
chris 50f2c7e080 Fixed synchronisation 2016-07-09 16:37:12 +02:00
chris d130080df2 Implemented methods offer and request, system test works now but synchronization is still broken. 2016-07-08 18:14:41 +02:00
chris abc2f63aa6 Some further fixes and improvements, not all tests working yet 2016-06-20 16:33:47 +02:00
chris ae2120675f Tests with NioNetworkHandler as peer work now 2016-06-18 23:09:23 +02:00
chris 0fadb40c6c Improved tests and fixed some 2016-06-16 19:47:59 +02:00
chris 12fb794203 Minor test improvements 2016-06-09 17:46:21 +02:00
chris cde4f7b3ce Some refactoring to move some common code into an AbstractConnection 2016-06-01 17:38:49 +02:00
chris 425a9dd6bf Merge branch 'develop' into feature/nio 2016-05-28 11:05:39 +02:00
chris c1fa642b4e Made tests more stable, albeit slightly slower 2016-05-28 11:04:47 +02:00
chris 08f2d5d6f1 Added write(ByteBuffer) to Streamable interface and a first draft for a NioNetworkHandler 2016-05-28 10:22:47 +02:00
chris b8f88b02d1 Improved tests 2016-05-26 22:50:37 +02:00
chris 5c4892d153 Added test 2016-05-26 06:55:31 +02:00
chris 43f42dd400 This breaks a lot of things, but it seems necessary. Implemented the resending mechanism and fixed many problems on the way, but tests and triggers are still to do. 2016-05-20 07:32:41 +02:00
chris 678a48ac3f Fixed system test and ProofOfWorkService 2016-05-05 10:50:22 +02:00
chris 784b192bab Simplyfied MultiThreadedPOWEngine and thread pool creation 2016-04-28 07:15:48 +02:00
chris 4f7f80c12a Added tests and code improvements 2016-04-08 19:22:40 +02:00
chris 3e5e431d6f Code cleanup 2016-02-28 23:03:00 +01:00
chris 2a17e6024f Code cleanup 2016-02-26 15:06:47 +01:00
chris bc68a5d3ec Code cleanup & improvements
- most notably removed some unnecessary synchronize blocks in the DefaultNetworkHandler
2016-02-26 14:34:08 +01:00
chris f6add5b2ea Code cleanup 2016-02-25 16:36:43 +01:00
chris 9f1e0057c9 Code cleanup 2016-02-24 23:10:04 +01:00
chris 4dd639e651 Code cleanup 2016-02-24 22:51:35 +01:00
chris 9f05af8bb7 Finally fixed the bug that was haunting me for the last week. 2016-01-21 20:32:23 +01:00
chris 733335ef42 Improved performance and network stability 2016-01-19 21:09:46 +01:00
chris 35077243b0 Fixed synchronization 2016-01-17 07:13:29 +01:00
chris 8764642878 Major fixes and improvements to the network module, fixing problems where objects where requested multiple times or not at all in some situations. 2016-01-16 08:47:50 +01:00
chris 549c8854ed Refactoring: renamed 'security' to 'cryptography' 2016-01-10 13:38:32 +01:00
chris 51bf3b8bd2 Fixed tests 2015-12-12 11:05:13 +01:00
chris 991a0e5f86 Some improvements for custom message handling 2015-12-02 17:45:50 +01:00
chris 99266712fa Some extensions for server POW 2015-11-28 20:27:05 +01:00
chris 1f05a52f05 Improvements
- Massively reduced logging, especially at debug level
- Optimizations to reduce system load
- Use bootstrapping to find stable nodes
2015-11-08 10:14:37 +01:00
chris 2a8834e3c6 Timeout might have been too short for Travis CI
(or there is an actual problem with concurrency)
2015-10-30 20:05:55 +01:00
chris c9c0806e0d Attempt to disconnect on thread interrupt 2015-10-29 12:34:29 +01:00