You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jason Ricles <jg...@alum.lehigh.edu> on 2016/02/10 03:40:20 UTC

Tomcat feature request

Is there any formal forum to make a feature request for tomcat?

I noticed I was having a silent failure with a binary websocket with tomcat
since I didn't flip the bytebuffer from write to read and the send kept
failing down at the low level of the code without any error being thrown.
With that in mind, I was thinking it would be useful to explicitly throw
that an error happened since I spent 1.5 days to debug that when I changed
the code I just forgot to flip the bytebuffer and had no excpetion being
thrown, it would thus be very helpful for debugging purposes.

Re: Tomcat feature request

Posted by Mark Thomas <ma...@homeinbox.net>.
On 10 February 2016 02:40:20 GMT+00:00, Jason Ricles <jg...@alum.lehigh.edu> wrote:
>Is there any formal forum to make a feature request for tomcat?

https://bz.apache.org/bugzilla

Mark

>
>I noticed I was having a silent failure with a binary websocket with
>tomcat
>since I didn't flip the bytebuffer from write to read and the send kept
>failing down at the low level of the code without any error being
>thrown.
>With that in mind, I was thinking it would be useful to explicitly
>throw
>that an error happened since I spent 1.5 days to debug that when I
>changed
>the code I just forgot to flip the bytebuffer and had no excpetion
>being
>thrown, it would thus be very helpful for debugging purposes.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat feature request

Posted by Jason Ricles <jg...@alum.lehigh.edu>.
On Wed, Feb 10, 2016 at 7:47 AM, Konstantin Kolinko
<kn...@gmail.com> wrote:
> 2016-02-10 5:40 GMT+03:00 Jason Ricles <jg...@alum.lehigh.edu>:
>> Is there any formal forum to make a feature request for tomcat?
>
> http://tomcat.apache.org/bugreport.html#How_to_submit_patches_and_enhancement_requests
>
> but usually better either to provide a patch or to discuss it (on the
> mailing list) to prove that there is an interest in the feature.
>
>> I noticed I was having a silent failure with a binary websocket with tomcat
>> since I didn't flip the bytebuffer from write to read and the send kept
>> failing down at the low level of the code without any error being thrown.
>> With that in mind, I was thinking it would be useful to explicitly throw
>> that an error happened since I spent 1.5 days to debug that when I changed
>> the code I just forgot to flip the bytebuffer and had no excpetion being
>> thrown, it would thus be very helpful for debugging purposes.
>
> 1. I think that a buffer that has not been flipped is not
> distinguishable from an empty buffer.
>
> Sending empty data is an empty operation, not an error.
>
> 2. Tomcat implements Java API for WebSocket 1.1 (JSR356).
>
> Error handling is defined by specification.
>
> Best regards,
> Konstantin Kolinko


That is very true Konstantin,

Maybe then adding as part of the java doc for the write binary to say
"remember to flip the buffer if was written to" or something of that
nature. I am just trying to think of a good way other users can avoid
this pit fall in the future but still follow the websocket spec as
stated.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat feature request

Posted by Konstantin Kolinko <kn...@gmail.com>.
2016-02-10 5:40 GMT+03:00 Jason Ricles <jg...@alum.lehigh.edu>:
> Is there any formal forum to make a feature request for tomcat?

http://tomcat.apache.org/bugreport.html#How_to_submit_patches_and_enhancement_requests

but usually better either to provide a patch or to discuss it (on the
mailing list) to prove that there is an interest in the feature.

> I noticed I was having a silent failure with a binary websocket with tomcat
> since I didn't flip the bytebuffer from write to read and the send kept
> failing down at the low level of the code without any error being thrown.
> With that in mind, I was thinking it would be useful to explicitly throw
> that an error happened since I spent 1.5 days to debug that when I changed
> the code I just forgot to flip the bytebuffer and had no excpetion being
> thrown, it would thus be very helpful for debugging purposes.

1. I think that a buffer that has not been flipped is not
distinguishable from an empty buffer.

Sending empty data is an empty operation, not an error.

2. Tomcat implements Java API for WebSocket 1.1 (JSR356).

Error handling is defined by specification.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org