2010/1/11 Abhinav Singh <[email protected]>: > > @Matt > Yeah it doesn't make a difference (xmpp or event based approach). > In any case server always have a request from client to which it can reply > to. > However in case of xmpp it's another extra request which serves this purpose > and in event based servers this extra request can be saved. >
As I wrote above it is *not* an extra request. What makes you think otherwise? Am I misunderstanding you? Client fires first request (1) Server has no requests open, so holds it open (time passes) Client wants to send data, so it makes a new request (2) Server now sees that it has 2 requests open from the client (1 and 2) Server replies to request 1 with no data Request 2 is being held until there is data to send the client I don't see how you could reduce the number of requests here. Matthew
