summaryrefslogtreecommitdiff
path: root/louloulibs/network
AgeCommit message (Collapse)Author
2016-10-20Very little optimization by using a simpler scope_guard when possiblelouiz’
The version with the vector, that can be disabled etc, is “very” slow, so we use unique_ptr when we don’t need to disable it, and when it only contains one function
2016-10-12On EINPROGRESS, we need to also check for read events (because openBSD lies)louiz’
“It is possible to select(2) or poll(2) for completion by selecting the socket for writing” Yeah, sure, “writing”…
2016-10-12Fix an off-by-one issue in the POLL codelouiz’
2016-10-06Fix the argument of strerror after bind()louiz’
fix coverity CID 134470
2016-10-06Remove a branch that execute identical code in both caseslouiz’
fix coverity CID 134469
2016-10-03Avoid an exception due to some bad logic in the DNS resolution mechaniclouiz’
fix #3207
2016-10-03Fix some compilation warning/errors that appear on FreeBSDlouiz’
2016-07-28Always remove all the DNS sockets on an c-ares eventlouiz’
Because c-ares may close one of its socket, even if it’s not the one that has the event. Otherwise we may not know when a socket has been removed from our poller (automatically, when close()ed) and this leads to bugs.
2016-07-27Revert "Don’t use unique_ptr to store dns socket handlers"louiz’
This reverts commit 5328d0806fdc5becb9344b4d4320787a2b7c0712.
2016-07-12Bring back DNSSocketHandler's destructorlouiz’
2016-07-12Don’t use unique_ptr to store dns socket handlerslouiz’
2016-07-04Replace all include guards by #pragma oncelouiz’
It’s $CURRENT_YEAR
2016-06-13Show off, with some variadic templates, for the logger modulelouiz’
2016-06-08Add a missing vector includelouiz’
2016-06-08Remove all usage of std::listlouiz’
2016-05-13Use “using” instead of typedeflouiz’
2016-05-10Fix build with POLLER=POLLlouiz’
2016-05-04Style fixlouiz’
Move all constructors at the top of classes
2016-04-22Add a TEMPORARY work-around for botan 1.11.29louiz’
2016-02-24Fix the ordering of poll callbacks, with ppoll tooFlorent Le Coz
2016-02-24Close the epoll fdFlorent Le Coz
2016-02-22Fix the ordering of poll callbacks (recv, connect, send)Florent Le Coz
Because if we have a send event to signal the connection sucess + a recv event to signal something to read on the socket, we need to first finish the connect process before reading the available data. That’s what we do now.
2016-02-10Rename BasicCredentialManagerFlorent Le Coz
2016-01-13Quiet a warningFlorent Le Coz
2016-01-04Support a trusted SHA1 fingerprint to be configured for each IRC serverFlorent Le Coz
2015-12-03Do not forget to call freeaddrinfo, fix a memleakFlorent Le Coz
For the getaddrinfo call we added in the previous commit, to convert the IP provided in the conf.
2015-12-01Display a better error when connection failsFlorent Le Coz
The error should not tell “while reading” when we are just connecting.
2015-12-01Add the outgoing_bind optionFlorent Le Coz
Lets the admin choose a local address to bind each outgoing (IRC) socket.
2015-11-30Do not segfault when trying to send TLS data over a not-yet connected socketFlorent Le Coz
2015-11-07Avoid leaking socket filedescriptorsFlorent Le Coz
When trying the various results of getaddrinfo, we forgot to close the socket when one fails, before trying the next one. Also use the destructor to make sure we do not have some other unrelated leak.
2015-11-05Make the CA file configurableFlorent Le Coz
2015-11-05Provide an adhoc option to let user pass the cert verif for some IRC serversFlorent Le Coz
2015-11-02Fix the build without botan, caused by credentials_managerFlorent Le Coz
2015-11-02Verify TLS certificate with the given hostname, instead of a hardcoded oneFlorent Le Coz
2015-11-02Verify the remote TLS certificates using the system-wide trusted CAsFlorent Le Coz
2015-10-31Remove a useless assignmentFlorent Le Coz
2015-10-26Fix some trivial issues reported by cppcheckFlorent Le Coz
2015-10-26Fix a build issue when compiling without caresFlorent Le Coz
2015-10-26Remove a unused_parameter warningFlorent Le Coz
2015-10-26Remove some more debug thingFlorent Le Coz
2015-10-26Remove some debug thing that should not have been committedFlorent Le Coz
2015-10-15Separate the DNS resolution logic from the TCP communication logicFlorent Le Coz
fix #3137
2015-09-22Catch TLS exceptions, close the connection and inform the user of the errorFlorent Le Coz
2015-07-09Display the resolved IP in debug logsFlorent Le Coz
2015-07-09If hostname resolution fails, do not try all possible portsFlorent Le Coz
2015-07-09Send the cares error message before cleaning itFlorent Le Coz
fix #3083
2015-07-09Check for timeouts on the DNS resolution using c-aresFlorent Le Coz
ref #3083
2015-07-08Minor comment typoFlorent Le Coz
2015-05-28louloulibs is directly included, instead of being a submoduleFlorent Le Coz
Because this is a nightmare to manage
2015-05-27Avoid some potential race conditions by blocking the signals we manageFlorent Le Coz
They are atomically unblocked in the ppoll/epoll_pwait calls, avoiding any race condition on the check of the “stop” or “reload” booleans.