On 06/20/2012 05:43 PM, Leif Hedstrom wrote:
On 6/20/12 3:56 AM, jean-frederic clere wrote:
Hi all,

In servlet 3.1 we have to support assync io and upgrade to raw
buffering, would that work with traffic server.

Cheers

Jean-Frederic

I'm not familiar with servlet, doing some Bing'ing, it seems to be a
Java spec, JSR 340? Is that it?

Yes it is JSR 340.


ATS obviously supports asynchronous I/O, it's a fundamental part of the
design (everything is asynchronous). What exactly do you mean with raw
buffering?  You want to upgrade the HTTP connection to some other protocol?

Yes it is a kind of upgrade to no protocol the data are send and received in a raw mode until the connection is closed. In Tomcat we get that by removing all filters. We use that for websocket for example:
GET /all//upgrade00 HTTP/1.1
host: localhost


HTTP/1.1 101 Switching Protocols
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=iVE2KWOuBlsUGx87Do3mRPbx; Path=/all
Upgrade: WebSocket
Sec-WebSocket-Protocol: sample
Connection: Upgrade
Date: Thu, 21 Jun 2012 07:21:21 GMT

And then we handle the websocket protocol in the servlet logic, which requires traffic server to proxy raw data.

Cheers

Jean-Frederic

Reply via email to