Sending empty message drops headers
Status: Beta
Brought to you by:
huston
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.
Logged In: YES
user_id=164167
I think you are right and so I'm changing this to a bug.