weili-jiang
fc22637578
Check pipe writes in linux_tcp to suppress Wunused-result in GCC
2019-02-05 08:33:28 +13:00
Emiel Bruijntjes
34f84e1ab7
handle unlikely error when ssl-handshake could not be started
2018-11-07 23:44:24 +01:00
Emiel Bruijntjes
64c876e65a
removed support for TcpConnection::flush() and removed internal TcpShutdown state
2018-11-06 18:11:27 +01:00
Emiel Bruijntjes
54049f9e8e
improved the tcp handler, added more methods to monitor whether a connection is connected, logged on and in an error state
2018-11-05 16:49:55 +01:00
Emiel Bruijntjes
359eec189f
work in progress, simplified the tcp and ssl states
2018-11-05 16:18:20 +01:00
Emiel Bruijntjes
e617161c8c
the state::abort() method is no longer needed
2018-11-05 15:49:22 +01:00
Emiel Bruijntjes
b81bc340b5
work in progress on refactored tcp handling, to solve various issues, like the one that lost connections do not trigger operations to fail
2018-11-04 23:34:31 +01:00
Emiel Bruijntjes
3f32e8773d
fixed typo and possible (but unlikely) crash in the tcp-resolver
2018-10-28 18:52:41 +01:00
Emiel Bruijntjes
62a4262a58
the TcpConnection::close() method now supports an "immediate" parameter to skip the official amqp handshake for closing down
2018-10-28 18:13:13 +01:00
Peter A. Bigot
adf4fb3bc1
TcpResolver: reduce risk of accessing destructed TcpConnection
...
Invoking TcpHandler::onError might result in the connection being
destroyed. Though the reference to it in TcpClosed() is likely benign,
it's safer to follow the standard practice of returning a nullptr to
indicate that the connection is known to be destroyed.
2018-06-24 10:31:21 -05:00
Emiel Bruijntjes
b26058f3e2
renamed bytesQueued() to queued()
2018-04-01 22:34:15 +02:00
Emiel Bruijntjes
cea5a54487
fix bug: error about missing openssl was also reported when not even opening a secure connection
2018-03-08 10:44:42 +01:00
Emiel Bruijntjes
9a08c64ff7
more elegant close procedure for tcp connections
2018-03-08 10:37:49 +01:00
Emiel Bruijntjes
f23bcf19f1
improved docblocks in tcpstate.h header file, when an error or closed is reported to user space, the _handler variable is now reset to prevent that it will be used to report more than once (we still need to check if this does not trigger other errors), and the state object is no longer destructed after a reportClosed() call, so that it can clean up nicely (which we need to the tls shutdown anyway)
2018-03-08 10:02:42 +01:00
Emiel Bruijntjes
7aa7794e3e
work in progress on ssl implementation
2018-03-06 22:03:53 +01:00
Emiel Bruijntjes
0ca9bc9dad
added error in case openssl is missing
2018-03-06 18:07:34 +01:00
Emiel Bruijntjes
69596e49dc
removed tabs
2018-03-06 08:40:44 +01:00
Emiel Bruijntjes
69c615d0a4
removed tcp prefix from all ssl related classes
2018-03-06 08:39:42 +01:00
Emiel Bruijntjes
72ffd5eb1a
disabled ssl for the time being
2018-03-05 22:25:58 +01:00
Emiel Bruijntjes
fa5ef5318a
work in progress on dealing with secure connections
2018-03-05 19:53:53 +01:00
Tamas Elekes
e46dfcf3b8
work in progress on ssl support for the AMQP-CPP library
2018-03-05 17:29:37 +01:00
Tamas Elekes
9c1a09a711
ssl connection WIP
2018-03-02 16:56:35 +01:00
Tamas Elekes
342268e50a
support for amqps:// addresses in the AMQP::Address class (although it does not yet make a real secure connection)
2018-03-02 13:53:00 +01:00
Aart Stuurman
27f765b5f7
linux tcp is now opt-out instead of opt-in(to keep compatibility with the original lib).
2018-01-23 19:15:10 +01:00