Stomp C Client Patch

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Stomp C Client Patch

Martin Ronner
Hi.

There's a bug in the C Client code.
The added \n won't be sent in stomp_write().
The given buffer size has to be increased too.

Line 246 in trunk/c/src/stomp.c:

246c246
<    rc = stomp_write_buffer(connection, "\0\n", 1);
---
>    rc = stomp_write_buffer(connection, "\0\n", 2);


Regards,
Martin


Martin Ronner
Software Engineer
________________________________

Nexus Telecom AG
Wireless Network Systems
Muertschenstrasse 27
P.O. Box 1413
CH-8048 Zurich
Switzerland

Mobile: +41 76 355 6615
Main:   +41 44 355 6611
mailto:[hidden email]
http://www.nexustelecom.com

Reply | Threaded
Open this post in threaded view
|

Re: Stomp C Client Patch

chirino
Fixed.

Thanks.!

On 4/21/06, Martin Ronner <[hidden email]> wrote:

> Hi.
>
> There's a bug in the C Client code.
> The added \n won't be sent in stomp_write().
> The given buffer size has to be increased too.
>
> Line 246 in trunk/c/src/stomp.c:
>
> 246c246
> <    rc = stomp_write_buffer(connection, "\0\n", 1);
> ---
> >    rc = stomp_write_buffer(connection, "\0\n", 2);
>
>
> Regards,
> Martin
>
>
> Martin Ronner
> Software Engineer
> ________________________________
>
> Nexus Telecom AG
> Wireless Network Systems
> Muertschenstrasse 27
> P.O. Box 1413
> CH-8048 Zurich
> Switzerland
>
> Mobile: +41 76 355 6615
> Main:   +41 44 355 6611
> mailto:[hidden email]
> http://www.nexustelecom.com
>
>


--
Regards,
Hiram