Hi,
When i start the simple_send.py from the examples provided with kombu
on github and change the simple_send.py to use SSL then the following
output is printed:
--------8<-------- console output ----------8<-------
Exception socket.error: (57, 'Socket is not connected') in <bound
method SSLTransport.__del__ of
<amqplib.client_0_8.transport.SSLTransport object at 0x1011dfed0>>
ignored
--------8<----- console output end ------8<-------
modified simple_send.py to connect via SSL (base code from
simple_send.py from kombu on github):
--------8<-------- simple_send.py ----------8<-------
"""
Example that sends a single message and exits using the simple
interface.
You can use `simple_receive.py` (or `complete_receive.py`) to receive
the
message sent.
"""
from kombu import BrokerConnection
#: Create connection
#: If hostname, userid, password and virtual_host is not specified
#: the values below are the default, but listed here so it can
#: be easily changed.
connection = BrokerConnection(hostname="localhost",
userid="guest",
password="guest",
virtual_host="/",
ssl=True,
port=5671)
#: SimpleQueue mimics the interface of the Python Queue module.
#: First argument can either be a queue name or a kombu.Queue object.
#: If a name, then the queue will be declared with the name as the
queue
#: name, exchange name and routing key.
queue = connection.SimpleQueue("kombu_demo")
queue.put({"hello": "world"}, serializer="json", compression="zlib")
# Always remember to close channels and connections.
queue.close()
connection.close()
--------8<-------- simple_send.py end ----------8<-------
I am using OS X with the current rabbitmq-server 2.5.1 (erlang version
5.8.4) installed with homebrew and Kombu 1.2.1.
Rabbitmq server is konfigured with SSL and certificates are created
based on the guide on
http://www.rabbitmq.com/ssl.html
Thanks for any suggestions or hints how to resolve this issue.
Best regards,
Christian