Commit Graph

900 Commits

Author SHA1 Message Date
Peter Eisenlohr 9c4cfffab8 std::move callbacks 2022-03-15 14:10:45 +01:00
Emiel Bruijntjes 5b213a31a9 Merge branch 'master' of github.com:CopernicaMarketingSoftware/AMQP-CPP 2022-01-26 16:59:04 +01:00
Emiel Bruijntjes 5625fdb59c update readme.md with onLost/onError handling example because it didnt compile (order was wrong) (fixes #422) 2022-01-26 16:58:28 +01:00
Emiel Bruijntjes 7c7152d0c2 update readme.md with onLost/onError handling example because it didnt compile (order was wrong) (fixes #442) 2022-01-26 16:57:01 +01:00
Emiel Bruijntjes faa58852cb the LibEvHandler::monitor() class is no longer private-final to allow user-space programs to further enhance it 2022-01-13 10:16:33 +01:00
Emiel Bruijntjes fc89bb83d1
Merge pull request #442 from matwey/libboostasio/heartbeat
libboostasio: Reimplement heartbeats
2022-01-12 19:56:49 +01:00
Matwey V. Kornilov 7aa321efb8 libboostasio: Reimplement heartbeats
Fixes: #251
2021-11-30 21:30:48 +03:00
Emiel Bruijntjes d5a7f3cdd1
Merge pull request #438 from TonyRoussel/add-message-deduplication-exchange
fix wrong exchange type check in ChannelImpl::declareExchange
2021-11-23 16:36:40 +01:00
Tony Roussel 6fd0e8f1d5 fix wrong exchange type check in ChannelImpl::declareExchange 2021-11-23 16:00:02 +01:00
Emiel Bruijntjes 04c77b5cff
Merge pull request #437 from TonyRoussel/add-message-deduplication-exchange
add x-message-deduplication exchange type
2021-11-23 14:50:56 +01:00
Tony Roussel c83708e9bd add x-message-deduplication exchange type
This exchange type exist on RabbitMQ server with the plugin rabbitmq_message_deduplication
This plugin code is available here: https://github.com/noxdafox/rabbitmq-message-deduplication
2021-11-23 14:13:55 +01:00
Rafal Goslawski b891cc37a6
Bump version to 4.3.15 2021-09-24 11:11:57 +02:00
Rafal Goslawski ef1264209e
Bump version to 4.3.15 2021-09-24 11:11:46 +02:00
Emiel Bruijntjes 24fcbc7248
Merge pull request #430 from CopernicaMarketingSoftware/timeout-issues
Timeout issues
2021-09-20 14:29:01 +02:00
Emiel Bruijntjes 0f596d7a6e added KEEPALIVE option to the TCP socket so that at least we are notified if the peer turns out to be non-connected 2021-09-20 12:48:30 +02:00
Emiel Bruijntjes e1e83dfba6 when a very short heartbeat timer is installed, the timer did not expire soon enough (the default 60-second timeout was still used for the timer) PLUS when we detect a heartbeat-timeout, we now close the connection with immediate effect (because we do not trust the regular AMQP handshake to do anything, because it is also not respecting heartbeats 2021-09-20 12:47:56 +02:00
Emiel Bruijntjes 4f54507a03
Merge pull request #429 from CopernicaMarketingSoftware/fix/remove-timer-again-call
Remove ev_timer_again calls
2021-09-16 12:58:14 +02:00
Raoul Wols 658da59a1b
Also start it again 2021-09-16 12:31:23 +02:00
Raoul Wols e36d8abcc9
Remove ev_timer_again calls
The documentation says about this function:

    If the timer is started but non-repeating, stop it (as if it timed out).

The timers are non-repeating, so we don't want this call.

https://linux.die.net/man/3/ev
2021-09-16 11:44:00 +02:00
Rafal Goslawski a363a9b953
Fixed typos in README.md 2021-09-10 12:44:17 +02:00
Emiel Bruijntjes e60280fb20
Merge pull request #423 from CopernicaMarketingSoftware/41307 2021-09-06 12:29:50 +02:00
Raoul Wols b25c3f3ea8
Use one-shot expirations instead of intervals for the libev backend 2021-09-06 12:08:18 +02:00
Emiel Bruijntjes cffbd346ae
Merge pull request #419 from CopernicaMarketingSoftware/40883 2021-08-10 17:20:23 +02:00
Raoul Wols 1d25f0acbc
Fixup sync handling for CopiedBuffer 2021-08-10 16:07:21 +02:00
Emiel Bruijntjes a09e33a609 fixed copy and move constructors of the PassthroughBuffer (fixes #418) 2021-08-10 14:24:04 +02:00
Raoul Wols 1dc169810d
Add missing include (#416) 2021-08-05 17:20:43 +02:00
Emiel Bruijntjes cd53dc0d8c Update issue templates 2021-08-04 09:35:25 +02:00
Emiel Bruijntjes 79dacc965f Update issue templates 2021-08-04 09:31:31 +02:00
Emiel Bruijntjes 2749d36a9c
Merge pull request #408 from benjamg/patch-1
Tiny typo in example
2021-08-02 08:39:32 +02:00
Emiel Bruijntjes 4b62948275
Merge pull request #411 from CopernicaMarketingSoftware/remove-unused-class
Remove unused ConsumedMessage class
2021-08-02 08:38:57 +02:00
Emiel Bruijntjes c7c36ab3c4
Merge pull request #409 from Niederb/master
Three small improvements
2021-08-02 08:38:19 +02:00
Thomas Niederberger f342edcfaf Add ON value for CMake build flags 2021-08-01 11:20:28 +02:00
Thomas Niederberger 592a8bf691 Fix typo 2021-08-01 11:20:28 +02:00
Raoul Wols 0499863da2
Fix SSL state bugs (#413) 2021-07-30 14:50:15 +02:00
Raoul Wols f0f17cdf18
Remove unused ConsumedMessage class 2021-07-28 12:14:50 +02:00
Ben Gray e981a8b2aa
Tiny typo in example 2021-07-23 18:52:50 +01:00
Raoul Wols 819af12055
Replace shared_ptr by unique_ptr for Fields (#402)
There is no real purpose to using shared pointers it seems.
2021-07-20 10:32:10 +02:00
Emiel Bruijntjes 29dd838478
Merge pull request #407 from CopernicaMarketingSoftware/40373
Print a better error message
2021-07-14 08:23:12 +02:00
Raoul Wols 2f26928e3e
docblock 2021-07-13 13:27:19 +02:00
Raoul Wols 477243d3f3
Handle newlines better in sslerrorprinter.cpp
According to 4cedf30e99/crypto/err/err_prn.c (L20)
the ERR_print_errors_cb function already adds newlines to the end
of each line. So we can just append right away. We do remove the
last newline as normally error messages don't end with a newline.
Also we may return 0 instead of 1.
2021-07-13 13:25:39 +02:00
Raoul Wols 40d2af913e
docblock 2021-07-13 13:19:32 +02:00
Raoul Wols 3ca1ef73ad
Lookup function in shared library 2021-07-13 13:12:32 +02:00
Raoul Wols df78574034
docblocks 2021-07-13 12:32:17 +02:00
Raoul Wols faa491ce65
remove BIO stuff completely, replace with callback 2021-07-13 12:31:04 +02:00
Raoul Wols 4d49b44283
separate cpp file 2021-07-13 11:37:31 +02:00
Raoul Wols d5819ef2dc
docblock 2021-07-13 11:24:08 +02:00
Raoul Wols 3bc7b62567
separate class for extracting errors 2021-07-13 11:23:08 +02:00
Raoul Wols 2f6451a9aa
Print a better error message
This is still missing the dlsym wrappers.
2021-07-12 18:44:16 +02:00
Emiel Bruijntjes d91a67c13e
Merge pull request #406 from CopernicaMarketingSoftware/40366
Monitor earlier in case flush() calls reportError
2021-07-12 15:55:52 +02:00
Raoul Wols e3678943cb
Monitor earlier in case flush() calls reportError. 2021-07-12 14:23:43 +02:00