Hello,
No, I'm connecting to amqp port. here is a network dump:
[ota@OTA-PROC ~]$ /usr/sbin/tcpdump -i any -n port 5672
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
08:13:11.305977 IP 127.0.0.1.42211 > 127.0.0.1.amqp: Flags [S], seq 1617001030, win 65495, options [mss 65495,sackOK,TS val 3379627759 ecr 0,nop,wscale 7], length 0
08:13:11.306024 IP 127.0.0.1.amqp > 127.0.0.1.42211: Flags [S.], seq 3860033889, ack 1617001031, win 65483, options [mss 65495,sackOK,TS val 3379627759 ecr 3379627759,nop,wscale 7], length 0
08:13:11.306095 IP 127.0.0.1.42211 > 127.0.0.1.amqp: Flags [.], ack 1, win 512, options [nop,nop,TS val 3379627759 ecr 3379627759], length 0
08:13:21.308951 IP 127.0.0.1.amqp > 127.0.0.1.42211: Flags [R.], seq 1, ack 1, win 512, options [nop,nop,TS val 3379637762 ecr 3379627759], length 0
Server reset connection after 10 seconds timeout, no data is sent to/from server.
The script is the following:
>>> import pika
>>> cparms=pika.ConnectionParameters("127.0.0.1")
>>> connection = pika.BlockingConnection(cparms)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/java/jython/Lib/site-packages/pika/adapters/blocking_connection.py", line 377, in __init__
self._process_io_for_connection_setup()
File "/opt/java/jython/Lib/site-packages/pika/adapters/blocking_connection.py", line 416, in _process_io_for_connection_setup
self._flush_output(self._opened_result.is_ready,
File "/opt/java/jython/Lib/site-packages/pika/adapters/blocking_connection.py", line 469, in _flush_output
raise maybe_exception
pika.exceptions.IncompatibleProtocolError: (-1, 'EOF')
The same script using pika-0.10.0 works fine (and rabbitmq-3.7.4):
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
11:24:34.294777 IP 127.0.0.1.42292 > 127.0.0.1.5672: Flags [S], seq 200617017, win 32792, options [mss 16396,sackOK,TS val 1571948628 ecr 0,nop,wscale 4], length 0
11:24:34.294845 IP 127.0.0.1.5672 > 127.0.0.1.42292: Flags [S.], seq 1997924536, ack 200617018, win 32768, options [mss 16396,sackOK,TS val 1571948628 ecr 1571948628,nop,wscale 4], length 0
11:24:34.294891 IP 127.0.0.1.42292 > 127.0.0.1.5672: Flags [.], ack 1, win 2050, options [nop,nop,TS val 1571948628 ecr 1571948628], length 0
11:24:34.544830 IP 127.0.0.1.42292 > 127.0.0.1.5672: Flags [P.], seq 1:9, ack 1, win 2050, options [nop,nop,TS val 1571948878 ecr 1571948628], length 8
11:24:34.544903 IP 127.0.0.1.5672 > 127.0.0.1.42292: Flags [.], ack 9, win 2048, options [nop,nop,TS val 1571948878 ecr 1571948878], length 0
....
Note that client sends data to server after opening connection ( line 4).
Best Regards,
Vladimir Goncharov