Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Use of uninitialized value $payload_len #63

Open
cc32d9 opened this issue Jul 19, 2019 · 2 comments
Open

Use of uninitialized value $payload_len #63

cc32d9 opened this issue Jul 19, 2019 · 2 comments

Comments

@cc32d9
Copy link

cc32d9 commented Jul 19, 2019

I'm getting sometimes the following errors while running a websocket server. The client is C++ Boost websocket client.

Jul 19 12:47:28 couch perl[4560]: Use of uninitialized value $payload_len in bitwise and (&) at /usr/local/share/perl/5.26.1/Protocol/WebSocket/Frame.pm line 145.
Jul 19 12:47:28 couch perl[4560]: Use of uninitialized value $payload_len in bitwise and (&) at /usr/local/share/perl/5.26.1/Protocol/WebSocket/Frame.pm line 150.

Protocol::WebSocket version 0.26

@vti
Copy link
Owner

vti commented Jul 19, 2019

Thanks for reporting. It would help a lot if you could dump the buffer value just above the line 145 and post the results.

@cc32d9
Copy link
Author

cc32d9 commented Jul 19, 2019

Unfortunately it's gigabytes of data, and the error occurs very rarely. A packet trace would be difficult

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants