Problem at removing/set header of HttpMessage

krislo kristjan.slomsek at gmail.com
Mon May 3 16:01:44 EDT 2010


Hi,


I detected some strange behavior on manipulating Http req/resp header (eq.
removing or setting the new value to 'SESSION' header of RTSP message).
Header line is not removed or is duplicated with the new set value.

I have checked a little and focused on HttpHeader class and when
removeHeader0(...) is called, Entry is just not detached from before/after
in the linked list. I have changed the first for-loop to remove the links
with e.remove() :

...
for (;;) {
            if (e.hash == h && eq(name, e.key)) {
                Entry next = e.next;
                e.remove();
                if (next != null) {
                    entries[i] = next;
                    e = next;
                } else {
                    entries[i] = null;
                    return;
                }
            } else {
                break;
            }
        }


By doing this it seems function behaves better but I haven't check deeper,
so just FYI that issue is present.



For further issue reporting (if I detect some other...) where it can be
reported? 
Is it ok to post to this forum?

tnx & brg,
K


-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Problem-at-removing-set-header-of-HttpMessage-tp4999921p4999921.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list