vti / protocol-websocket

Protocol::WebSocket
Other
40 stars 27 forks source link

error while building message: Payload is too big. #24

Closed Oleksiy-Yakovenko closed 10 years ago

Oleksiy-Yakovenko commented 11 years ago

i'm getting the following error after the module got updated to 0.002001

error while building message: Payload is too big. Send shorter messages or increase max_payload_size at /usr/local/share/perl/5.14.2/Protocol/WebSocket/Frame.pm line 232.

this didn't happen before. extra info:

$ perl -MNet::WebSocket::Server -e 'print "$Net::WebSocket::Server::VERSION\n"'
0.002001

can you make the max_payload_size configurable?

vti commented 11 years ago

It is configurable and always was. Just pass it to the Frame constructor.

Oleksiy-Yakovenko commented 11 years ago

but i'm not using the Frame module anywhere.

i use Net::WebSocket::Server

is it possible to configure Frame's max_payload_size via the Server API?

vti commented 11 years ago

You better contact author of Net::WebSocket::Server.

Oleksiy-Yakovenko commented 11 years ago

oh. i thought it's the same project. sorry for the confusion.

randomandy commented 9 years ago

Sorry for commenting on a closed issue. How do you set the payload size in the Frame constructor?

There's nothing on that in the docs: http://search.cpan.org/~vti/Protocol-WebSocket-0.18/lib/Protocol/WebSocket/Frame.pm

vti commented 9 years ago

new(max_payload_size => NUMBER) should work. Yeah, docs could be better.