Peter A. Bigot
a6930f5c36
linux_tcp/poll: fix undefined behavior in select
...
The select(2) system call on Linux now includes the restrict qualifier
on the fd_set pointers passed in, causing a diagnostic in gcc9 for the
call blocking for both read and write. Pass a pointer to a temporary
copy of the set when two references are required.
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-05-30 10:53:09 -05:00
Michael van der Werve
19d82ed1f2
fixed issue where timer could set negative value in repeat if heavily delayed
2019-05-02 12:08:14 +02:00
Rafal Goslawski
f7317ab4f1
Bump version to 4.1.4
2019-03-07 17:19:48 +01:00
Rafal Goslawski
d851cbd122
Bump version to 4.1.4
2019-03-07 17:19:30 +01:00
Emiel Bruijntjes
b4a67ac618
fixed dealing with timers in libev handler
2019-03-06 12:53:35 +01:00
Emiel Bruijntjes
180eae10b6
Merge pull request #283 from weili-jiang/fix-wunused-result
...
Check pipe writes in linux_tcp to suppress Wunused-result in GCC
2019-02-05 00:03:18 +01:00
weili-jiang
fc22637578
Check pipe writes in linux_tcp to suppress Wunused-result in GCC
2019-02-05 08:33:28 +13:00
Rafal Goslawski
e9acf15685
Update .travis.yml
2019-01-22 11:09:08 +01:00
Rafal Goslawski
13d96108f5
Update .travis.yml
2019-01-22 11:08:37 +01:00
Rafal Goslawski
a0a6afe93b
Update .travis.yml
2019-01-22 11:05:58 +01:00
Rafal Goslawski
7797dd2c2e
Fix cmake call in travis
2019-01-22 11:00:08 +01:00
thijs-blom
a18e518ac8
when heartbeats were disabled, the event loop refcount would not be restored correctly after the timer expired. This has been fixed ( #281 )
2019-01-17 16:16:38 +01:00
Rafal Goslawski
532cc731fb
Bump version to 4.1.2
2019-01-15 13:42:58 +01:00
Rafal Goslawski
2f71c6d3f3
Bump version to 4.1.2
2019-01-15 13:42:32 +01:00
Emiel Bruijntjes
375733ac09
Merge pull request #279 from CopernicaMarketingSoftware/heartbeat_fix
...
Give the server more time to send a heartbeat
2019-01-15 13:33:35 +01:00
Thijs Blom
a3c68009e7
Give the server more time to send a heartbeat to make sure one missed heartbeat does not close the connection
2019-01-15 13:12:57 +01:00
Rafal Goslawski
3e5cbd0c5d
Bump version to 4.1.1
2019-01-10 17:38:12 +01:00
Rafal Goslawski
14fc4c91ad
Bump version to 4.1.1
2019-01-10 17:37:53 +01:00
Emiel Bruijntjes
22076c34ad
Merge pull request #277 from CopernicaMarketingSoftware/heartbeat-timer
...
ev_timer_again should be called after next has been set to a new value
2019-01-10 16:59:13 +01:00
Michael van der Werve
0857022bc4
ev_timer_again should be called after next has been reset
2019-01-10 15:59:57 +01:00
Emiel Bruijntjes
e10fd61ac8
slightly prettified the code
2019-01-10 08:25:31 +01:00
Emiel Bruijntjes
964398292a
Merge pull request #275 from CopernicaMarketingSoftware/ssl-eliminate-copy
...
Don't buffer SSL unless necessary
2019-01-10 08:23:59 +01:00
Rafal Goslawski
c49dca3890
Bump version to 4.1.0
2019-01-08 16:49:24 +01:00
Rafal Goslawski
10d7df6819
Bump version to 4.1.0
2019-01-08 16:49:09 +01:00
Michael van der Werve
a774e6c10c
on ssl error, make sure that it is found out
2019-01-08 13:14:42 +01:00
Michael van der Werve
63d4acdce3
should be in working order now
2019-01-08 12:58:38 +01:00
Emiel Bruijntjes
901298cd1c
fixed libev handler: the heartbeat interval proposed by the server was not accepted
2018-12-17 16:19:40 +01:00
Emiel Bruijntjes
5d1d2c2852
fix timer that expired too early ( fix #272 )
2018-12-17 16:11:53 +01:00
Emiel Bruijntjes
1256c82d60
use std::list instead of std::vector
2018-12-14 00:07:19 +01:00
Emiel Bruijntjes
20d4104d18
Merge pull request #271 from CopernicaMarketingSoftware/heartbeats
...
Implemented custom heartbeats in Livev
2018-12-13 23:41:20 +01:00
Youri Moll
a92dc27653
Implemented custom heartbeats in Livev
2018-12-13 13:01:38 +01:00
Rafal Goslawski
edf06c0762
Merge pull request #270 from NozomiNetworks/compile-on-freebsd
...
This simple change allows the library to be compiled under FreeBSD.
2018-12-03 16:30:25 +01:00
Moreno Carullo
3d1605009b
This simple change allows the library to be compiled under FreeBSD.
2018-12-03 13:00:00 +01:00
Emiel Bruijntjes
03ca83cb50
handle case when tcp connection is lost during reading, that should report an error back to user-space too ( fixes #266 )
2018-12-03 08:29:17 +01:00
Emiel Bruijntjes
6a02a62169
Merge branch 'master' of github.com:CopernicaMarketingSoftware/AMQP-CPP
2018-11-30 06:43:22 +01:00
Emiel Bruijntjes
d2e3792abc
fixed issue when end-of-file was encountered, this fixes #266
2018-11-30 06:42:54 +01:00
Emiel Bruijntjes
65e5a6d4d0
Merge pull request #269 from galeone/master
...
CMakeLists.txt: add_source_directory instead of add_subdirectory
2018-11-30 06:34:31 +01:00
Paolo Galeone
471f82b669
CMakeLists.txt: add_source_directory instead of add_subdirectory
2018-11-28 16:47:06 +01:00
Emiel Bruijntjes
53f994d61d
when user calls connection.heartbeat() we now always send out the heartbeat (AMQP-CPP no longer tries to be smart about skipping heartbeats, because that could lead to timeouts if the user is a little late with its call, or when there is network congestion)
2018-11-28 13:52:00 +01:00
Rafal Goslawski
3373cec5a2
Bump version to 4.0.1
2018-11-27 15:40:18 +01:00
Rafal Goslawski
d49db3ba89
Bump version to 4.0.1
2018-11-27 15:39:57 +01:00
Emiel Bruijntjes
ec31f5ad11
added Channel implementation file ( fixes #267 )
2018-11-25 12:46:12 +01:00
Emiel Bruijntjes
91a23d5737
Merge branch 'master' of github.com:CopernicaMarketingSoftware/AMQP-CPP
2018-11-23 11:16:03 +01:00
Emiel Bruijntjes
ee60aeb025
The Channel constructor now throws an exception if the max number of channels has been reached
2018-11-23 11:15:51 +01:00
Emiel Bruijntjes
799583ea39
Merge branch 'master' of github.com:CopernicaMarketingSoftware/AMQP-CPP
2018-11-21 13:56:53 +01:00
Emiel Bruijntjes
8eed709988
Connection::fail() will now also call the channel::onError method
2018-11-21 13:56:44 +01:00
Rafal Goslawski
bddceb77f2
Bump version to 4.0.0
2018-11-15 11:48:53 +01:00
Rafal Goslawski
1dd04760a9
Bump version to 4.0.0
2018-11-15 11:48:34 +01:00
Emiel Bruijntjes
45ca61cc43
added TcpConnection::closed()
2018-11-14 14:15:52 +01:00
Emiel Bruijntjes
549fec5cb1
libevhandler only checks for heartbeats if not overridden by user
2018-11-12 22:07:48 +01:00