tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sol myr <solmy...@yahoo.com>
Subject Re: Comet and multipart
Date Thu, 06 Jan 2011 14:12:21 GMT
Thanks :)

You're correct about blocking inputStreams, but I actually need Tomcat to write a multipart
*response*, on an OutputStream (the reading side is on the client, and our client-side programmers
will manage it without blocking).
I wondered whether I'll have to hand-code it (manually output the headers, etc), or is there
some utilities on Tomcat/apach.

Thanks anyway :)


--- On Tue, 1/4/11, Filip Hanik - Dev Lists <devlists@hanik.com> wrote:

From: Filip Hanik - Dev Lists <devlists@hanik.com>
Subject: Re: Comet and multipart
To: "Tomcat Users List" <users@tomcat.apache.org>
Date: Tuesday, January 4, 2011, 9:43 AM

> 1) If we use multipart format (to separate between messages), does Tomcat/Apache have
utilities to make it easier? Or should we hand-code the appropriate headers, separators, etc?
Not in Tomcat 6. The risk of using any utilities out there, is that they will want to block
on inputstream.read until the entire request 
body has been read, and I suspect that's not what you want.




      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message