Re: [Cppcms-users] comet server empty reply
Brought to you by:
artyom-beilis
|
From: Lee E. <lee...@gm...> - 2012-12-31 07:06:17
|
this sounds like a timeout from the client side - not from the server connection needs to be kept alive from both ends On Mon, Dec 31, 2012 at 8:00 AM, william lee <we...@gm...> wrote: > btw, I did sent "Connection: Keep-Alive" from client via connect, but it > doesn't make any difference. > > thanks, > William L. > > > On Mon, Dec 31, 2012 at 1:47 PM, william lee <we...@gm...> wrote: > >> Hi, >> I'm using CppCMS to create a comet server, pretty much same as the Chat >> example. I release context and store it in a map for broadcast or targeted >> reply later. >> >> At same time, I'm using libcurl to create a client app to connect to >> cppcms comet server via http 127.0.0.1:8080 GET method >> >> I found a interesting thing, like 10s-15s after http connected, the >> client side will disconnect and print "Empty reply from server", "Server >> returned nothing (no headers, no data)". >> From comet server side code, there is no timeout release context. >> >> This behavior happens on Win7 and ubuntu server. >> >> Anyone have idea why such thing happen? >> Is there any limitation with long polling that caused this? I expect a >> live HTTP connection can wait for several minutes. >> >> thanks! >> William L. >> > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122412 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- -- lee Lee Elenbaas lee...@gm... |