<div dir="ltr">I did not set frame_max.<div><br></div><div style>Here is my config:</div><div style><br></div><div style><div>[</div><div>    {rabbit, [</div><div>                {tcp_listeners, [5672]},</div><div>                {log_levels, [{connection, info}]}</div>
<div>            ]},</div><div>    {rabbitmq_mochiweb, [</div><div>                {listeners, [{mgmt, [{port, 8091}]}]}</div><div>            ]}</div><div>].</div><div><br></div><div>=========================================================</div>
<div><br></div><div style>By the way, I change rabbitmq-server version to 2.8.7, send.py and recv.py can send/recv message. </div><div style>But I want to know why?</div><div><br></div><div><br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 12:25 AM, Simon MacMullen <span dir="ltr">&lt;<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hmm. That looks like some problem (in the server) encoding the response to connection.start-ok, i.e. connection.tune. Have you customised the frame_max or heartbeat setting in the rabbitmq.config file? Can you post your config?<br>

<br>
Cheers, Simon<div class="im"><br>
<br>
On 16/09/13 16:04, 鞠大升 wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
hi, all<br>
<br>
I am newer to rabbitmq.<br>
<br>
I install a rabbitmq, just download, setup and startup the server. then<br>
I use a simple python client to connect, but the client report a error.<br>
<br></div>
==============================<u></u>===================<div class="im"><br>
Here is my version config:<br>
python: 2.7<br>
rabbitmq:  rabbitmq-server-generic-unix-<u></u>3.1.5.tar.gz<br>
erlang: otp_src_R16B01<br>
pika: master<br>
<br></div>
==============================<u></u>===================<div class="im"><br>
Here is my python client:<br>
#!/usr/bin/env python<br>
import pika<br>
<br>
connection = pika.BlockingConnection(pika.<u></u>ConnectionParameters(<br>
             host=&#39;localhost&#39;))<br>
channel = connection.channel()<br>
<br>
<br>
channel.queue_declare(queue=&#39;<u></u>hello&#39;)<br>
<br>
channel.basic_publish(<u></u>exchange=&#39;&#39;,<br>
             routing_key=&#39;hello&#39;,<br>
             body=&#39;Hello World!&#39;)<br>
print &quot; [x] Sent &#39;Hello World!&#39;&quot;<br>
connection.close()<br>
<br></div>
==============================<u></u>===================<div><div class="h5"><br>
Here is the error info:<br>
Traceback (most recent call last):<br>
   File &quot;send.py&quot;, line 5, in &lt;module&gt;<br>
     host=&#39;localhost&#39;))<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/<u></u>blocking_connection.py&quot;,<br>
line 123, in __init__<br>
     super(BlockingConnection, self).__init__(parameters, None, False)<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/base_<u></u>connection.py&quot;,<br>
line 62, in __init__<br>
     on_close_callback)<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/connection.py&quot;,<br>
line 593, in __init__<br>
     self.connect()<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/<u></u>blocking_connection.py&quot;,<br>
line 223, in connect<br>
     error = self._adapter_connect()<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/<u></u>blocking_connection.py&quot;,<br>
line 302, in _adapter_connect<br>
     self.process_data_events()<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/<u></u>blocking_connection.py&quot;,<br>
line 233, in process_data_events<br>
     if self._handle_read():<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/<u></u>blocking_connection.py&quot;,<br>
line 346, in _handle_read<br>
     super(BlockingConnection, self)._handle_read()<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/base_<u></u>connection.py&quot;,<br>
line 323, in _handle_read<br>
     return self._handle_error(error)<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/base_<u></u>connection.py&quot;,<br>
line 287, in _handle_error<br>
     self._handle_disconnect()<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/<u></u>blocking_connection.py&quot;,<br>
line 336, in _handle_disconnect<br>
     self._adapter_disconnect()<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/<u></u>blocking_connection.py&quot;,<br>
line 311, in _adapter_disconnect<br>
     self._check_state_on_<u></u>disconnect()<br>
   File<br>
&quot;/usr/local/lib/python2.7/<u></u>dist-packages/pika-0.9.14p0-<u></u>py2.7.egg/pika/adapters/base_<u></u>connection.py&quot;,<br>
line 141, in _check_state_on_disconnect<br>
     raise exceptions.<u></u>ProbableAuthenticationError<br>
pika.exceptions.<u></u>ProbableAuthenticationError<br>
<br></div></div>
==============================<u></u>===================<div class="im"><br>
Here is the log info:<br>
=INFO REPORT==== 16-Sep-2013::22:27:29 ===<br>
accepting AMQP connection &lt;0.322.0&gt; (<a href="http://127.0.0.1:44572" target="_blank">127.0.0.1:44572</a><br></div>
&lt;<a href="http://127.0.0.1:44572/" target="_blank">http://127.0.0.1:44572/</a>&gt; -&gt; <a href="http://127.0.0.1:5672" target="_blank">127.0.0.1:5672</a> &lt;<a href="http://127.0.0.1:5672/" target="_blank">http://127.0.0.1:5672/</a>&gt;)<div class="im">
<br>
<br>
=ERROR REPORT==== 16-Sep-2013::22:27:32 ===<br>
closing AMQP connection &lt;0.322.0&gt; (<a href="http://127.0.0.1:44572" target="_blank">127.0.0.1:44572</a><br></div>
&lt;<a href="http://127.0.0.1:44572/" target="_blank">http://127.0.0.1:44572/</a>&gt; -&gt; <a href="http://127.0.0.1:5672" target="_blank">127.0.0.1:5672</a> &lt;<a href="http://127.0.0.1:5672/" target="_blank">http://127.0.0.1:5672/</a>&gt;):<div class="im">
<br>
{handshake_error,starting,0,<br>
     {error,badarg,&#39;connection.<u></u>start_ok&#39;,<br>
         [{rabbit_framing_amqp_0_9_1,<u></u>encode_method_fields,1,[]},<br>
          {rabbit_binary_generator,<u></u>build_simple_method_frame,3,[]<u></u>},<br>
          {rabbit_writer,internal_send_<u></u>command,4,[]},<br>
          {rabbit_reader,send_on_<u></u>channel0,3,[]},<br>
          {rabbit_reader,auth_phase,2,[]<u></u>},<br>
          {rabbit_reader,handle_method0,<u></u>3,[]},<br>
          {rabbit_reader,handle_input,3,<u></u>[]},<br>
          {rabbit_reader,recvloop,2,[]}]<u></u>}}<br>
<br></div>
==============================<u></u>===================<br>
*Anyone can tell me what&#39;s the problem?*<br>
<br>
<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, Pivotal<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>dashengju<br>+86 13810875910<br><a href="mailto:dashengju@gmail.com">dashengju@gmail.com</a>
</div>