Jan Vidar Krey
50e720861e
Detect if system is big endian (e.g. PPC64)
2013-02-20 00:30:02 +01:00
Jan Vidar Krey
d48ef710d8
Added an ADC hub redirector written in python.
2013-02-10 22:56:36 +01:00
Jan Vidar Krey
cfa210b3f3
Added a python version of the NMDC redirector.
2013-02-10 21:25:34 +01:00
Jan Vidar Krey
f6f7c7a3a4
Make sure we compile release builds with NDEBUG defined (to disable asserts).
2013-02-05 22:44:31 +01:00
Jan Vidar Krey
1fbde2b0fd
Re-factored the ADC client code to use the new connection establishment API.
2013-02-05 22:43:59 +01:00
Jan Vidar Krey
92b65a0e14
Created a connection establishment API.
...
This API provides transparent asynchronous DNS lookups
with both IPv4 and IPv6 support, and in addition will try
to connect to all addresses until one of them work.
This implements the "happy eyeballs" algorithm provided that the client supports IPv6
and that the DNS records provides both IPv6 and IPv4 addresses.
2013-02-05 22:40:20 +01:00
Jan Vidar Krey
4d438e1e90
Don't poll the connection monitor if there are no connections added.
...
This caused the backends to return an error code, which
in turn ended the mainloop. However, several other things
also might occur in the main loop, such as DNS lookups which
come prior to creating any connections that in turn would be monitored.
2013-02-05 22:38:13 +01:00
Jan Vidar Krey
4f3c71234b
Merge branch 'master' of https://github.com/3M3RY/uhub
2012-11-22 22:26:46 +01:00
Jan Vidar Krey
fdaadccb99
Merge pull request #18 from tehnick/fix-build-on-hurd-i386
...
(tehnick) Fix build in Debian GNU/Hurd.
2012-11-23 02:25:36 -08:00
Jan Vidar Krey
41251f8d32
Install uhub-passwd also.
2012-11-20 22:53:27 +01:00
Jan Vidar Krey
3b18ae251e
Automatically find Sqlite3 - removed option to disable it.
...
This means Sqlite3 is now mandatory.
2012-11-20 22:53:27 +01:00
Boris Pek
b452488431
Fix build in Debian GNU/Hurd.
2012-11-20 22:41:38 +02:00
Emery
143b68588a
Systemd notify support
2012-11-17 09:57:14 -06:00
Jan Vidar Krey
5f2b7bc069
Merge pull request #16 from 3M3RY/master
...
Systemd journaling support
2012-11-11 23:56:51 -08:00
Emery
ce68c446d1
Optional systemd journal logging
2012-11-11 15:21:00 -06:00
Tillmann Karras
37c80fd403
rename !cleartopic to !resettopic
...
The command resets the topic to the default as configured in uhub.conf.
"clear" wrongly implies that the topic will be emptied.
Also added a plugin description in plugins.conf.
2012-11-08 15:14:58 +01:00
Tillmann Karras
dcc7aa4018
some regex adjustments
...
IP addresses are now checked for correct charset rather than allowing
everything.
2012-11-08 12:36:37 +01:00
Tilka
9dce6693f6
fix error messages and comments
2012-11-08 12:27:08 +01:00
Jan Vidar Krey
6af0f293a6
Updated changelog for 0.4.1 release.
2012-11-07 20:24:06 +01:00
Jan Vidar Krey
a492f30950
Update authors file.
2012-11-07 20:08:28 +01:00
Jan Vidar Krey
a43953bc0d
Added simple plugin that blocks downloads for non-registered users (guests).
2012-11-01 22:07:55 +01:00
Jan Vidar Krey
594801df46
Fix windows compile issues.
2012-11-01 21:52:33 +01:00
Jan Vidar Krey
3dcbb63a31
Implemented a simlpe red-black tree which should give better performance
...
for certain lookups.
The rb_tree will act as a general purpose key/value storage, and
also give a performance boost in the cases where the other
simple alternative would be to use a linked_list.
On average this should give on average O(log n) lookups, while the linked_list
would be O(n) at worst.
2012-11-01 21:46:44 +01:00
Jan Vidar Krey
5d6184961b
Fix a failing test on Windows.
2012-11-01 21:18:49 +01:00
Jan Vidar Krey
b17e88573e
Fixed Windows VC compile issues with autotests.
2012-11-01 21:10:51 +01:00
Jan Vidar Krey
2d2ccc0039
Merge branch 'async_dns_api'
2012-11-01 10:42:19 +01:00
Jan Vidar Krey
0a2f9c4b79
Merge branch 'autotest'
2012-11-01 10:40:51 +01:00
Jan Vidar Krey
ae62c35cb9
Disable SSL compression.
2012-11-01 10:39:31 +01:00
Jan Vidar Krey
2ec2e73f16
Make sure we always build the autotests.
...
Caveat, need to run the update script manually after changing the tests (adding or removing tests).
However, modifying existing tests does not require running the update script.
Added a copy of exotic in the repository
exotic automatically generates the skeleton code around the autotests in order to schedule
the tests.
2012-10-25 17:27:45 +02:00
Jan Vidar Krey
d4763e54db
Fixed memory leaks.
2012-10-25 04:13:45 +02:00
Jan Vidar Krey
38b19f633d
Fix memory leaks and report "host is not found" correctly.
2012-10-25 04:13:05 +02:00
Jan Vidar Krey
d106ecdc65
Bugfixes for pthreads.
2012-10-25 04:10:42 +02:00
Jan Vidar Krey
99a2307d1d
Simple compile fix.
2012-10-25 00:44:21 +02:00
Jan Vidar Krey
470c936e63
Converted the DNS resolver to work with the new threading API abstraction.
2012-10-25 00:40:16 +02:00
Jan Vidar Krey
168fc5bfcc
Abstracted the threading code so that it works with Winthreads and pthreads.
2012-10-25 00:39:44 +02:00
Jan Vidar Krey
b34b90f95a
Start using the async DNS API.
2012-10-24 23:22:10 +02:00
Jan Vidar Krey
793790d089
Initial implementation of an async DNS client API with getaddrinfo + pthreads.
2012-10-24 23:19:14 +02:00
Jan Vidar Krey
19559f4974
Make sure we count OpenSSL traffic for the byte IO statistics.
2012-10-18 11:40:18 +02:00
Jan Vidar Krey
b999068555
Use OpenSSL by default.
2012-10-17 19:02:32 +00:00
Jan Vidar Krey
4385266bb7
Free all memory in case the hub does not start because of port already in use.
2012-10-17 20:54:46 +02:00
Jan Vidar Krey
c50eb90bee
Removed the last bits of OpenSSL code called directly
2012-10-17 20:53:05 +02:00
Jan Vidar Krey
1e0927f510
Update copyright year.
2012-10-17 20:00:52 +02:00
Jan Vidar Krey
b9d43c784c
Merge branch 'master' of github.com:janvidar/uhub
...
Conflicts:
CMakeLists.txt
2012-10-17 19:59:02 +02:00
Jan Vidar Krey
46d365cafe
Merge branch 'gnutls_work'
2012-10-17 15:47:16 +02:00
Jan Vidar Krey
2f830d3132
Cleaned up error handling.
2012-10-17 15:39:48 +02:00
Jan Vidar Krey
5884983a2f
Return -1 as error for recv/send only to signal socket has closed, use a number < -1 for socket errors.
2012-10-17 15:02:32 +02:00
Jan Vidar Krey
c43acd97bd
Fixed accept/connect state event propagation.
...
Also removed some unused states and flags.
2012-10-17 09:25:15 +02:00
Jan Vidar Krey
b1f2c93738
Reworked the error handling of non-blocking reads and writes.
...
This should prevent busy loops where the socket is makred readable
but we are really only looking for it to become writable.
2012-10-17 09:16:02 +02:00
Jan Vidar Krey
50912bdf75
More work on splitting out OpenSSL specific bits.
2012-10-15 20:39:03 +02:00
Jan Vidar Krey
3a8c91004e
fixup! Add possibility to specify UHUB_REVISION manually.
2012-10-15 20:27:43 +02:00