Subject: | receive_frame with timeout |
Date: | Tue, 24 Mar 2015 21:09:46 +0300 |
To: | bug-net-stomp [...] rt.cpan.org |
From: | colddaylike <colddaylike [...] ya.ru> |
Hi,
I was reading the code and maybe found a bug.
When receive_frame is called with the timeout parameter, if it started reading the frame body, and _read_data returns undef because of timeout, the receive_frame function returns undef too. When receive_frame is called next time it should continue reading the body, but I believe it starts reading headers again, though _framebuf contains not the headers but the body data.
I'm sorry if I misunderstood something.