Menu ▾ ▴

#28 Sending empty message drops headers

open
nobody
None
5
2002-11-19
2002-11-19
Kevin Gross
No

Sending an empty OutputDataStream does not
send the headers.

Basic steps:
1) Create MimeHeaders;
2) Set some header values;
3) Create OutputDataStream(headers);
4) Call setComplete()
5) Channel.sendMSG(output);

The receiving end gets the message, but there are
no MIME headers defined.

Looking at Channel and how it uses the
OutputDataStream.availableSegment(), I think the
availableSegment() method needs to return true if there
are any MIME headers defined and the headers have not
been sent or when !buffer.isEmpty(). Just a thought.

If I add my own zero-length BufferSegment, it works.

Discussion

  • Huston Franklin

    Huston Franklin - 2002-12-05

    Logged In: YES
    user_id=164167

    I think you are right and so I'm changing this to a bug.

     

Log in to post a comment.