>
> You are welcome. Just continue asking questions :)
>
>
As you wish :)
Q1) how do i manage gzip compression? how do i manage "file not
modified?" (maybe 302, 203, or someting like that) is the same of
StaticStreamAlgorithm?
Q2) push over pull: (long one)
Let's suppose that i want to handle this situation
Client ---> NOTIFY (http) --> server--> wait until ready --> response
on my "old" webserver (the one that i am trying to migrate to grizzly
framework)
i do something as follow
client --> connect---> new thread
wait(timeout-2)
response = session.getresponse()
the server when have the response ready, load in into the client
session (an object used when a client
connect to ws) and then fire all the waiting thread.
if there is no answare, just before a certain timeout, i reply with a
<Push/> (empty response)
the client can issue another <Push/> request and wait for another 60s
this is used to have "realtime" notify of a certain event.
My stupid idea (tm)
grizzlyws
static res adapter (to serve static file)
async res adapter (that go in wait on a new object that is in client
session)
server fire-> not on threads (they will gone! HEAY) but on the object
inside the session.
pseudo code
syncronize(session.getPushObject())
wait(blalbal)
fire something or nothing
how bad is?
Q3) i want to add a shtml (stupid html)
that basically are file that will be compiled with a stupid language
that was used before i come here :D (now it's time for java)
but i need to mantains backward compatibility.
i can add some sort of "fastcgi" interface, and is already done.
unfortunatly parse this shtml is slow, terribly slow, and if i use a
modified static adapter, i will have a lot of pain :D
do you suggest to port the code on another async adapter?
basically, how do i choose if something is good for async adapter or
for sync adapter?
basically for now is over, i need some time to digest all the
valuable info that you give to me
btw, request.action(ActionCode.ACTION_REQ_LOCAL_NAME_ATTRIBUTE); do
the trick :D
Also, the last one, i need some clarification about async and sync req..
maybe some docs, because i want to read something before start asking
stupid question.
ie: what is the order of sync and async adapter?
if i add 1 sync (for static) and 4 async (for shtml, push over pull,
other idiot stuff)
it will be unuseful to go through all 4 async req, because a request
can be shtml OR push over pull (not both)
so, there is a way to "direct" the request to the correct filter?
or, at least, can i stop all the chain?
but, this question doesn't need reply for now, i still have to study
a bit :)
tnx for helping!