cppcms-users Mailing List for CppCMS C++ Web Framework (Page 74)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Barbu P. - G. <bar...@gm...> - 2012-08-14 19:26:27
|
On 08/14/2012 10:04 PM, Artyom Beilis wrote: > > Because I don't use URL dispatching so I don't need url variable, > and this prevents warning about unused parameter with -Wall -Wextra Got it, thank you! -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: Barbu P. - G. <bar...@gm...> - 2012-08-14 19:26:06
|
> Because I need to variables: > > - "this" witch technically may be > captured by reference as well, but not really needed. > - "context" - the shared_ptr on the http::context that > would go out of scope when the callback is called. Yeah, I thought about "context" going out of scope just after sending the email. Thanks! -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: Artyom B. <art...@ya...> - 2012-08-14 19:06:59
|
----- Original Message ----- > From: Barbu Paul - Gheorghe <bar...@gm...> > To: Artyom Beilis <art...@ya...>; cpp...@li... > Cc: > Sent: Tuesday, August 14, 2012 6:52 PM > Subject: Re: [Cppcms-users] Server-Sent Events Example > > On 08/12/2012 11:54 PM, Artyom Beilis wrote: >> Published there: >> >> http://blog.cppcms.com/post/107 > > Hi, I have a question about: > > context->async_on_peer_reset([=](){ > this->waiters_.erase(context); > }); > > Why are you catching things in the labda by value, not by reference? > Because I need to variables: - "this" witch technically may be captured by reference as well, but not really needed. - "context" - the shared_ptr on the http::context that would go out of scope when the callback is called. > > -- > Barbu Paul - Gheorghe > Common sense is not so common - Voltaire > Visit My GitHub profile to see my open-source projects - > https://github.com/paullik > Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: Artyom B. <art...@ya...> - 2012-08-14 19:04:36
|
----- Original Message ----- > From: Barbu Paul - Gheorghe <bar...@gm...> > To: Artyom Beilis <art...@ya...>; cpp...@li... > Cc: > Sent: Tuesday, August 14, 2012 6:40 PM > Subject: Re: [Cppcms-users] Server-Sent Events Example > > On 08/12/2012 11:54 PM, Artyom Beilis wrote: >> Published there: >> >> http://blog.cppcms.com/post/107 > > Why did you write > > void main(std::string /*url*/) > > and not > > void main(std::string /url) > > ? > Because I don't use URL dispatching so I don't need url variable, and this prevents warning about unused parameter with -Wall -Wextra > -- > Barbu Paul - Gheorghe > Common sense is not so common - Voltaire > Visit My GitHub profile to see my open-source projects - > https://github.com/paullik > Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: Barbu P. - G. <bar...@gm...> - 2012-08-14 15:52:58
|
On 08/12/2012 11:54 PM, Artyom Beilis wrote: > Published there: > > http://blog.cppcms.com/post/107 Hi, I have a question about: context->async_on_peer_reset([=](){ this->waiters_.erase(context); }); Why are you catching things in the labda by value, not by reference? -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: Barbu P. - G. <bar...@gm...> - 2012-08-14 15:40:22
|
On 08/12/2012 11:54 PM, Artyom Beilis wrote: > Published there: > > http://blog.cppcms.com/post/107 Why did you write void main(std::string /*url*/) and not void main(std::string /url) ? -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: Artyom B. <art...@ya...> - 2012-08-14 11:22:48
|
CppCMS 1.0.2 Released, it is a bug fix release. Fixed Bugs: - Fixed incorrect HTML generation using `as_table` - Fixed build issues with latest ICU: 3540278 - Fixed some warnings in Boost.Locale - Fixed missing error report in case of running out of disk space in file upload: 3542469 - Fixed visual studio 11 build issues: 3527712,3527702 - Fixed problem with using automatic type detection in C++11 mode with gcc 3537374 - Fixed bugs that made stackstream useless - Fixed issues build issues on Mac OS X: 3513865 - Fixed OpenSSL detection on Windows: 3515712 - Fixed incorrect scgi configuration for nginx in `cppcms_run` Updated repositories: The deb and rpm files published for x86 and x86_64 architectures for for following distributions: Ubuntu: oneiric, precise (11.10 and 12.04LTS) Debian: squeezy (6.0) CentOS: 6 Fedora: 16 and 17 OpenSuse: 11.4 and 12.1 Artyom Beilis ------------- Support CppCMS by donating money: https://sourceforge.net/donate/index.php?group_id=209965 |
From: Barbu P. - G. <bar...@gm...> - 2012-08-13 12:16:06
|
On 08/12/2012 11:54 PM, Artyom Beilis wrote: > Published there: > > http://blog.cppcms.com/post/107 Hey, I have to point out two mistakes: <title>Chat Room</title> In the_ticker.html Also there is the jQuery script in the_ticker.html that is not needed since you're using plain JS for this example. > Thanks to Barbu Paul - Gheorghe for pointing me to this powerful HTML5 feature. You're welcome, I'm glad I helped. -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: Artyom B. <art...@ya...> - 2012-08-12 20:54:12
|
Published there: http://blog.cppcms.com/post/107 Thanks to Barbu Paul - Gheorghe for pointing me to this powerful HTML5 feature. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: Artyom B. <art...@ya...> - 2012-08-11 12:21:22
|
Probably, or I'll put it in the contrib section - of classes that are add-ons to CppCMS Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: william lee <we...@gm...> >To: Artyom Beilis <art...@ya...>; cpp...@li... >Sent: Saturday, August 11, 2012 3:47 AM >Subject: Re: [Cppcms-users] Server Sent events and CppCMS > > >Hi Artyom, >will this SSE feature be part of CppCMS, same as JsonRPC? > > >thanks, >William L. > > >On Sat, Aug 11, 2012 at 3:37 AM, Artyom Beilis <art...@ya...> wrote: > >Ooops, >> >>forget to attach >> >> >> >> >>Artyom Beilis >>-------------- >>CppCMS - C++ Web Framework: http://cppcms.com/ >>CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> >> >> >>----- Original Message ----- >>> From: Barbu Paul - Gheorghe <bar...@gm...> >> >>> To: Artyom Beilis <art...@ya...>; cpp...@li... >>> Cc: >> >>> Sent: Friday, August 10, 2012 9:40 PM >>> Subject: Re: [Cppcms-users] Server Sent events and CppCMS >>> >> >>> On 08/10/2012 06:48 PM, Artyom Beilis wrote: >>>> I had changed your example a little: >>>> >>>> 1. Remove context from the list such that it would not write some more data >>>> until completion handler returns. >>>> 2. You use incorrectly completion handler - you need to receive the status >>>> in handler. >>>> 3. Reduced reconnect option so the client would reconnect immediatly >>> >>> Where can I see the changed code? >>> >>>> Also it would be better to use Last-Event-ID header and setup ids so the >>>> client that is disconnected can reconnect and restart from correct point. >>> >>> Yeah this is more of a feature, what I did was a proof of concept for myself to >>> see if I'm able to implement it... >>> >>> -- >>> Barbu Paul - Gheorghe >>> Common sense is not so common - Voltaire >>> Visit My GitHub profile to see my open-source projects - >>> https://github.com/paullik >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Cppcms-users mailing list >>> Cpp...@li... >>> https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>------------------------------------------------------------------------------ >>Live Security Virtual Conference >>Exclusive live event will cover all the ways today's security and >>threat landscape has changed and how IT managers can respond. Discussions >>will include endpoint security, mobile security and the latest in malware >>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: william l. <we...@gm...> - 2012-08-11 00:48:07
|
Hi Artyom, will this SSE feature be part of CppCMS, same as JsonRPC? thanks, William L. On Sat, Aug 11, 2012 at 3:37 AM, Artyom Beilis <art...@ya...> wrote: > Ooops, > > forget to attach > > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > > ----- Original Message ----- > > From: Barbu Paul - Gheorghe <bar...@gm...> > > To: Artyom Beilis <art...@ya...>; > cpp...@li... > > Cc: > > Sent: Friday, August 10, 2012 9:40 PM > > Subject: Re: [Cppcms-users] Server Sent events and CppCMS > > > > On 08/10/2012 06:48 PM, Artyom Beilis wrote: > >> I had changed your example a little: > >> > >> 1. Remove context from the list such that it would not write some more > data > >> until completion handler returns. > >> 2. You use incorrectly completion handler - you need to receive the > status > >> in handler. > >> 3. Reduced reconnect option so the client would reconnect immediatly > > > > Where can I see the changed code? > > > >> Also it would be better to use Last-Event-ID header and setup ids so > the > >> client that is disconnected can reconnect and restart from correct > point. > > > > Yeah this is more of a feature, what I did was a proof of concept for > myself to > > see if I'm able to implement it... > > > > -- > > Barbu Paul - Gheorghe > > Common sense is not so common - Voltaire > > Visit My GitHub profile to see my open-source projects - > > https://github.com/paullik > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Artyom B. <art...@ya...> - 2012-08-10 19:37:49
|
Ooops, forget to attach Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ ----- Original Message ----- > From: Barbu Paul - Gheorghe <bar...@gm...> > To: Artyom Beilis <art...@ya...>; cpp...@li... > Cc: > Sent: Friday, August 10, 2012 9:40 PM > Subject: Re: [Cppcms-users] Server Sent events and CppCMS > > On 08/10/2012 06:48 PM, Artyom Beilis wrote: >> I had changed your example a little: >> >> 1. Remove context from the list such that it would not write some more data >> until completion handler returns. >> 2. You use incorrectly completion handler - you need to receive the status >> in handler. >> 3. Reduced reconnect option so the client would reconnect immediatly > > Where can I see the changed code? > >> Also it would be better to use Last-Event-ID header and setup ids so the >> client that is disconnected can reconnect and restart from correct point. > > Yeah this is more of a feature, what I did was a proof of concept for myself to > see if I'm able to implement it... > > -- > Barbu Paul - Gheorghe > Common sense is not so common - Voltaire > Visit My GitHub profile to see my open-source projects - > https://github.com/paullik > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Barbu P. - G. <bar...@gm...> - 2012-08-10 18:40:34
|
On 08/10/2012 06:48 PM, Artyom Beilis wrote: > I had changed your example a little: > > 1. Remove context from the list such that it would not write some more data > until completion handler returns. > 2. You use incorrectly completion handler - you need to receive the status > in handler. > 3. Reduced reconnect option so the client would reconnect immediatly Where can I see the changed code? > Also it would be better to use Last-Event-ID header and setup ids so the > client that is disconnected can reconnect and restart from correct point. Yeah this is more of a feature, what I did was a proof of concept for myself to see if I'm able to implement it... -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: Artyom B. <art...@ya...> - 2012-08-10 15:49:01
|
I had changed your example a little: 1. Remove context from the list such that it would not write some more data until completion handler returns. 2. You use incorrectly completion handler - you need to receive the status in handler. 3. Reduced reconnect option so the client would reconnect immediatly Also it would be better to use Last-Event-ID header and setup ids so the client that is disconnected can reconnect and restart from correct point. Small notes about streaming and flushing: - In CppCMS internal server works 100%, - In Lighttpd works 100% - In Apache - it is required to add -flush option - In nginx: -- scgi it is required to add scgi_buffer off; option -- fastcgi ... It is not possible to disable buffering - at least I had not found one Once agains... STUPID nginx Best, Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ ----- Original Message ----- > From: Barbu Paul - Gheorghe <bar...@gm...> > To: cpp...@li... > Cc: > Sent: Thursday, August 9, 2012 11:44 PM > Subject: Re: [Cppcms-users] Server Sent events and CppCMS > > Hi again. > > So I managed to implement a chat using SSE and CppCMS, you can find it here: > > https://gist.github.com/3307849 > > (the Makefile and config.js are the same ones as in the "Implementing > Chat" > tutorial) > > It's just a proof of concept, it has issues: > > The biggest one is that after I send some messages and wait for about 30 seconds > > the following error appears: > http://i.imgur.com/jtQUZ.png > > If I refresh the page everything seems fine again, then if I wait 30 seconds > with no activity the error appears. I think this is somehow related to > chat::get(), but I'm not really sure. > > What response is generated if chat::get() sends no explicit response? > > > The second issue is the TODO in chat.cpp. > > -- > Barbu Paul - Gheorghe > Common sense is not so common - Voltaire > Visit My GitHub profile to see my open-source projects - > https://github.com/paullik > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Barbu P. - G. <bar...@gm...> - 2012-08-10 07:51:29
|
On 08/10/2012 07:53 AM, william lee wrote: > http://www.boost.org/doc/libs/1_50_0/libs/bind/bind.html#with_member_pointers Thak you. If I understood correctly the two binded arguments are: * the first for setting the instance of the objcact from where the member pointer should be called from * the 2nd arg. for setting the actual parameter of the called member function -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: william l. <we...@gm...> - 2012-08-10 04:54:04
|
http://www.boost.org/doc/libs/1_50_0/libs/bind/bind.html#with_member_pointers Regards, William L. On Fri, Aug 10, 2012 at 2:45 AM, Barbu Paul - Gheorghe < bar...@gm...> wrote: > Hi. > > I don't understand the bind() call when binding the arguments to > chat::remove_context. > > chat::remove_context takes only one parameter, but there are binded two, > how can > that be possible? > > I'm talking about: > > booster::shared_ptr<cppcms::http::context> context=release_context(); > waiters_.insert(context); > context->async_on_peer_reset( > bind( > &chat::remove_context, > booster::intrusive_ptr<chat>(this), > context)); > > and: > > void remove_context(booster::shared_ptr<cppcms::http::context> context) > { > waiters_.erase(context); > } > > -- > Barbu Paul - Gheorghe > Common sense is not so common - Voltaire > Visit My GitHub profile to see my open-source projects - > https://github.com/paullik > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Barbu P. - G. <bar...@gm...> - 2012-08-09 20:44:33
|
Hi again. So I managed to implement a chat using SSE and CppCMS, you can find it here: https://gist.github.com/3307849 (the Makefile and config.js are the same ones as in the "Implementing Chat" tutorial) It's just a proof of concept, it has issues: The biggest one is that after I send some messages and wait for about 30 seconds the following error appears: http://i.imgur.com/jtQUZ.png If I refresh the page everything seems fine again, then if I wait 30 seconds with no activity the error appears. I think this is somehow related to chat::get(), but I'm not really sure. What response is generated if chat::get() sends no explicit response? The second issue is the TODO in chat.cpp. -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: Barbu P. - G. <bar...@gm...> - 2012-08-09 18:45:22
|
Hi. I don't understand the bind() call when binding the arguments to chat::remove_context. chat::remove_context takes only one parameter, but there are binded two, how can that be possible? I'm talking about: booster::shared_ptr<cppcms::http::context> context=release_context(); waiters_.insert(context); context->async_on_peer_reset( bind( &chat::remove_context, booster::intrusive_ptr<chat>(this), context)); and: void remove_context(booster::shared_ptr<cppcms::http::context> context) { waiters_.erase(context); } -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: Barbu P. - G. <bar...@gm...> - 2012-08-09 17:49:35
|
On 08/09/2012 05:51 PM, Artyom Beilis wrote: > How could I miss such a cook HTML5 feature! If you need a hand implementing that class just let me know, maybe I can help. -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: Artyom B. <art...@ya...> - 2012-08-09 14:51:19
|
I'm really glad that you brought it up because: 1. It is very easy to implement 2. It is supported by most (but IE) browsers 3. It can be easily substituted with long polling if the browser does not support EventSource (like IE) with minimal changes. 4. It does not require changes in HTTP protocol or underlying APIs like FastCGI/SCGI to implement server side events 5. It already defines queuing that is most common case of COMET. 6. In terms of performance in event dispatching it is as fast as WebSockets 7. The only drawback in comparison with WebSockets is that client can't do very fast server notification - but in general client does not have to fire too many events. 8. It does not seems to have two hundred of incompatible versions implemented on different levels by different browsers (such that some of them are not PROXY compatible) as web socket. Bottom line - it seems like a sane and modern approach to modern Comet (unlike WebSockets that you even can't implement over FastCGI) How could I miss such a cook HTML5 feature! Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Barbu Paul - Gheorghe <bar...@gm...> >To: Artyom Beilis <art...@ya...>; cpp...@li... >Sent: Thursday, August 9, 2012 5:36 PM >Subject: Re: [Cppcms-users] Server Sent events and CppCMS > >On 08/09/2012 05:29 PM, Artyom Beilis wrote: >> You know... >> >> The EventStream is so interesting and good concept so I'll write a class that allows >> to handle it easily. It will go to contrib section. > >I had no idea you'll like it so much! >I'm glad you enjoy it. > >-- >Barbu Paul - Gheorghe >Common sense is not so common - Voltaire >Visit My GitHub profile to see my open-source projects - https://github.com/paullik > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Barbu P. - G. <bar...@gm...> - 2012-08-09 14:36:57
|
On 08/09/2012 05:29 PM, Artyom Beilis wrote: > You know... > > The EventStream is so interesting and good concept so I'll write a class that allows > to handle it easily. It will go to contrib section. I had no idea you'll like it so much! I'm glad you enjoy it. -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |
From: Artyom B. <art...@ya...> - 2012-08-09 14:29:39
|
You know... The EventStream is so interesting and good concept so I'll write a class that allows to handle it easily. It will go to contrib section. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Artyom Beilis <art...@ya...> >To: "cpp...@li..." <cpp...@li...> >Sent: Thursday, August 9, 2012 3:57 PM >Subject: Re: [Cppcms-users] Server Sent events and CppCMS > > > > > >----- Original Message ----- >> From: Barbu Paul - Gheorghe <bar...@gm...> >> To: Artyom Beilis <art...@ya...>; cpp...@li... >> Cc: >> Sent: Thursday, August 9, 2012 2:59 PM >> Subject: Re: [Cppcms-users] Server Sent events and CppCMS >> >> On 08/09/2012 02:23 PM, Artyom Beilis wrote: >>> >>> >>>> On 08/09/2012 01:29 PM, Artyom Beilis wrote: >>>>> Are you familiar with this? >>>>> >>>>> http://cppcms.com/wikipp/en/page/cppcms_1x#Comet.Programming >>>> >>>> No, I haven't followed that part of the tutorial, but I read it. >>>> But thinking of it ... >>>> >>>> Will it work if instead of the long pooling connection I'll use the >>>> EventStream in JS? >>> >>> I'm not familiar with EventStream of JS. But if it supports server >>> side events... Than it does either long polling or some sort of streaming >>> like hidden iframe or "never-ending" javascript etc. >>> >>> There are many COMET techniques. >> >> http://www.w3.org/TR/eventsource/ > >Ohhh!! > >So cool, good to know! ;-) > > >> >> Hmm, when I'll have some free time I'll modify your coment example and >> try to >> make it work with SSE. >> >> Wish me luck :) >> > >It should be quite simple, just use async_flush and continue to wait. > >It is very nice and what is more important it does not require >changes in web server api (fcgi/scgi) in order to implement it >unlike WebSockets (that had zillion drafts for it) > > >> Thank you for your time! >> >> -- >> Barbu Paul - Gheorghe >> Common sense is not so common - Voltaire >> Visit My GitHub profile to see my open-source projects - >> https://github.com/paullik > >Best, > > > > Artyom Beilis >-------------- >CppCMS - C++ Web Framework: http://cppcms.com/ >CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2012-08-09 12:58:04
|
----- Original Message ----- > From: Barbu Paul - Gheorghe <bar...@gm...> > To: Artyom Beilis <art...@ya...>; cpp...@li... > Cc: > Sent: Thursday, August 9, 2012 2:59 PM > Subject: Re: [Cppcms-users] Server Sent events and CppCMS > > On 08/09/2012 02:23 PM, Artyom Beilis wrote: >> >> >>> On 08/09/2012 01:29 PM, Artyom Beilis wrote: >>>> Are you familiar with this? >>>> >>>> http://cppcms.com/wikipp/en/page/cppcms_1x#Comet.Programming >>> >>> No, I haven't followed that part of the tutorial, but I read it. >>> But thinking of it ... >>> >>> Will it work if instead of the long pooling connection I'll use the >>> EventStream in JS? >> >> I'm not familiar with EventStream of JS. But if it supports server >> side events... Than it does either long polling or some sort of streaming >> like hidden iframe or "never-ending" javascript etc. >> >> There are many COMET techniques. > > http://www.w3.org/TR/eventsource/ Ohhh!! So cool, good to know! ;-) > > Hmm, when I'll have some free time I'll modify your coment example and > try to > make it work with SSE. > > Wish me luck :) > It should be quite simple, just use async_flush and continue to wait. It is very nice and what is more important it does not require changes in web server api (fcgi/scgi) in order to implement it unlike WebSockets (that had zillion drafts for it) > Thank you for your time! > > -- > Barbu Paul - Gheorghe > Common sense is not so common - Voltaire > Visit My GitHub profile to see my open-source projects - > https://github.com/paullik Best, Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: augustin <aug...@ov...> - 2012-08-09 12:14:53
|
On Thursday, August 09, 2012 07:59:16 PM Barbu Paul - Gheorghe wrote: > Wish me luck :) I wish you luck! :) Augustin, (who, unfortunately, is not knowledgeable enough to be able to help you). -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ http://www.wechange.org/ http://searching911.info/ . |
From: Barbu P. - G. <bar...@gm...> - 2012-08-09 11:59:26
|
On 08/09/2012 02:23 PM, Artyom Beilis wrote: > > >> On 08/09/2012 01:29 PM, Artyom Beilis wrote: >>> Are you familiar with this? >>> >>> http://cppcms.com/wikipp/en/page/cppcms_1x#Comet.Programming >> >> No, I haven't followed that part of the tutorial, but I read it. >> But thinking of it ... >> >> Will it work if instead of the long pooling connection I'll use the >> EventStream in JS? > > I'm not familiar with EventStream of JS. But if it supports server > side events... Than it does either long polling or some sort of streaming > like hidden iframe or "never-ending" javascript etc. > > There are many COMET techniques. http://www.w3.org/TR/eventsource/ > > async_complete_response does what is defined - completes the response and > closes the connection. The client is expected to reopen one - send a new > XHR and wait again - also note that you can't get partial content > using XHR API. > > If you want to not complete the response use async_flush_output > with completion handler. > Hmm, when I'll have some free time I'll modify your coment example and try to make it work with SSE. Wish me luck :) Thank you for your time! -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |