Hi Rosa,
Are you running the latest version (trunk from GitHub) of
_AutobahnPython_ also?
Can you double check?
Because
(python279_1)oberstet@thinkpad-t430s:~/scm/crossbar/crossbar$ python
Python 2.7.9 (default, Jan 18 2015, 21:40:29)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> val =
2146566144
>>> import struct
>>> struct.pack("!I", val)
'\x7f\xf2\x00\x00'
This is exactly the initial handshake bytes sent
https://github.com/tavendo/AutobahnCpp/blob/master/autobahn/autobahn_impl.hpp#L64
And the _old_ AutobahnPython code will interpret that as a message
length, which exceeds the default of 128k.
Cheers,
/Tobias
Am 09.04.2015 um 16:03 schrieb Rosa Lisin:
> Hello Tobias,
> I am trying to run hello.cpp example with the lates versions on msgpack
> and autobahnCpp, but joining realm fails, here is the crossbar error
> message:
>
> *2015-04-09 06:31:21-0700 [Router 14044] failing RawSocket
> connection - message length exceeded: message was
2146566144 bytes, but
> current maximum is 131072 bytes*
> *2015-04-09 06:31:21-0700 [Router 14044] WAMP-over-RawSocket
> connection lost: reason = '[Failure instance: Traceback (failure with no
> frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was
> closed cleanly.*
>
> Please let me know what is it I am missing.
>
> The following warning was produced by the compiler while building the
> project. Not sure if it has anything to do with the problem, but just FYI:
>
> autobahn_impl.hpp: In instantiation of ‘void autobahn::session<IStream,
> OStream>::start() [with IStream =
> boost::asio::basic_stream_socket<boost::asio::ip::tcp>; OStream =
> boost::asio::basic_stream_socket<boost::asio::ip::tcp>]’:
> main.cpp:89:30: required from here
> autobahn_impl.hpp:65:27: warning: overflow in implicit constant
> conversion [-Woverflow]
> m_buffer_msg_len[1] = 0xF2; // we are ready to receive messages
> up to 2**24 octets and encoded using MsgPack
>
> Thanks,
> Rosa
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Autobahn" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
autobahnws+...@googlegroups.com
> <mailto:
autobahnws+...@googlegroups.com>.
> To post to this group, send email to
autob...@googlegroups.com
> <mailto:
autob...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/autobahnws/66f79836-13e3-4a63-b701-c1be4de448ca%40googlegroups.com
> <
https://groups.google.com/d/msgid/autobahnws/66f79836-13e3-4a63-b701-c1be4de448ca%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.