cppcms-users Mailing List for CppCMS C++ Web Framework (Page 23)
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: mawan s. <ma...@gm...> - 2016-01-05 09:20:03
|
Thankyou .. Dmitry I use Phonegap that now integrated by ionic framework with ionic with PHP as server. Is it secure use webview in mobile application? On Tue, Jan 5, 2016 at 3:23 PM, Дмитрий Востриков <ds...@gm...> wrote: > Hi! If you want use just only C++ i advise Qt framework. But cppcms not > set any restrictions on what framework you can use on mobile side. For > rapid dev solution I'am use Ionic framework that is about hybrid apps. > > Dmitriy Vostrikov > > С Уважением, > Дмитрий Востриков > mawan sugiyanto <ma...@gm...> | Дата: 05 янв. 2016 г. 11:04 | > Сообщение: > > Dear All > > I want create mobile application and cppcms as a server. Are you know what > is C++ mobile application framework? > > And is it support for cross platform for Android and IOS? > > Thank you .. > > > Mawan > > |
From: Дмитрий В. <ds...@gm...> - 2016-01-05 08:21:10
|
<p dir="ltr">Hi! If you want use just only C++ i advise Qt framework. But cppcms not set any restrictions on what framework you can use on mobile side. For rapid dev solution I'am use Ionic framework that is about hybrid apps.</p> <p dir="ltr">Dmitriy Vostrikov</p> <p dir="ltr">С Уважением,<br> Дмитрий Востриков</p> mawan sugiyanto <ma...@gm...> | Дата: 05 янв. 2016 г. 11:04 | Сообщение:<br type='attribution'><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p/><div dir="ltr">Dear All <div><br></div><div>I want create mobile application and cppcms as a server. Are you know what is C++ mobile application framework?</div><div><br></div><div>And is it support for cross platform for Android and IOS?</div><div><br></div><div>Thank you .. </div><div><br></div><div><br></div><div>Mawan</div></div> </blockquote></div> |
From: mawan s. <ma...@gm...> - 2016-01-05 08:03:37
|
Dear All I want create mobile application and cppcms as a server. Are you know what is C++ mobile application framework? And is it support for cross platform for Android and IOS? Thank you .. Mawan |
From: Artyom B. <art...@gm...> - 2016-01-04 07:48:17
|
On Mon, Jan 4, 2016 at 8:44 AM, Arno Duvenhage <adu...@cs...> wrote: > Hi > > I'm getting errors trying to compile CPPCMS > 'https://svn.code.sf.net/p/cppcms/code/framework/trunk': > > cppcms/steal_buf.h:71:36: error: implicit > > instantiation of undefined template 'std::__1::basic_istream<char, > > std::__1::char_traits<char> >' > > class const_char_istream : public std::istream { > > > I'm using OSX and cmake. Thanks for the report, it was <istream> include missing with clang/libc++ Please run svn update it should work now. Also once you build please don't forget to run "make test" or "ctest" to get all the tests running on Mac OS X. (I don't have one to run on) and it is forbidden to run one on non-Mac VM (according to Mac OS X EULA) > > > Kind Regards, > > Arno > > Regards, Artyom |
From: eric m. <mid...@gm...> - 2016-01-03 13:50:28
|
Ok thanks! I will dive into that. Just curious, what would you use instead of signal2 in this case? Kind regards, Eric On Sun, Jan 3, 2016 at 6:27 AM, Artyom Beilis <art...@gm...> wrote: > On Sun, Jan 3, 2016 at 10:44 AM, eric middelkoop > <mid...@gm...> wrote: > > Hi Artyom, > > > > Thank you for your quick response. That really did the trick! > > > > I have two other questions: > > 1) How does the "id" work under water? Is it that I just always need the > id > > and can add any data underneath it? > > Take a look on description of Server Sent Events: > > http://www.w3.org/TR/eventsource/ > > It is required for the client to automatic synchronization with the server > in case of disconnect. > > > 2) How does cppcms handle exceptions? For instance I have an Ajax-call > to a > > method and that method throws, but it seems that the exception is > swallowed > > somewhere as it does not appear anywhere? > > > > Depends... > > 1. If the exception is thrown from cppcms::application::main (i.e. > request handler) > it would be wrtten into log (of course if logging enabled) > 2. If it is thrown in the event loop thread - outside of ordinary > request it would propagate > all the way outside cppcms::service::run() > > > > > Ps. A nice comet-example with signals2 might be applicable for others as > > well. > > That is what mailing list for :-) > > I think boost::signal(2) is good for "broadcasting" a signal to > multiple listeners > it is less interesting in case of one event sent to a specific target I'd > just > > > -- > > Groetjes, > > Eric > > > > Regards. > Artyom > > > ------------------------------------------------------------------------------ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Groetjes, Eric http://www.lightandmagicphotography.nl http://www.lightandmagicphotography.com |
From: Artyom B. <art...@gm...> - 2016-01-03 11:27:59
|
On Sun, Jan 3, 2016 at 10:44 AM, eric middelkoop <mid...@gm...> wrote: > Hi Artyom, > > Thank you for your quick response. That really did the trick! > > I have two other questions: > 1) How does the "id" work under water? Is it that I just always need the id > and can add any data underneath it? Take a look on description of Server Sent Events: http://www.w3.org/TR/eventsource/ It is required for the client to automatic synchronization with the server in case of disconnect. > 2) How does cppcms handle exceptions? For instance I have an Ajax-call to a > method and that method throws, but it seems that the exception is swallowed > somewhere as it does not appear anywhere? > Depends... 1. If the exception is thrown from cppcms::application::main (i.e. request handler) it would be wrtten into log (of course if logging enabled) 2. If it is thrown in the event loop thread - outside of ordinary request it would propagate all the way outside cppcms::service::run() > > Ps. A nice comet-example with signals2 might be applicable for others as > well. That is what mailing list for :-) I think boost::signal(2) is good for "broadcasting" a signal to multiple listeners it is less interesting in case of one event sent to a specific target I'd just > -- > Groetjes, > Eric > Regards. Artyom |
From: eric m. <mid...@gm...> - 2016-01-03 08:44:56
|
Hi Artyom, Thank you for your quick response. That really did the trick! I have two other questions: 1) How does the "id" work under water? Is it that I just always need the id and can add any data underneath it? 2) How does cppcms handle exceptions? For instance I have an Ajax-call to a method and that method throws, but it seems that the exception is swallowed somewhere as it does not appear anywhere? Kind regards, Eric Ps. A nice comet-example with signals2 might be applicable for others as well. On Sat, Jan 2, 2016 at 12:01 PM, Artyom Beilis <art...@gm...> wrote: > Hi, > > You have two issues: > > 1st of all your code does not compile because sig.connect tries to > copy the ticker class which isn't something you actually want. And in > general if you already using boost::signals2 you should also use its > automatic disconnection handling. So first change would be > > boost::signals2::scoped_connection conn; > > void connectSlot() > { > conn = std::move(sig.connect([this](double v) { > this->on_new_value(v); > })); > } > > Now the second issue is that you should be aware of the fact that the > robot thread and application thread are different so what you need to > do is to use service().post(handler) to post code execution to the > main event loop of the cppcms: > > void on_new_value(double v) > { > service().post([=]() { // post for execution in relevant thread > this->handle(v); > }); > } > // now actual work > void handle(double new_one) > { > cout << "SLOT CALLED" << endl; > counter_++; > price_ = new_one; > for(auto waiter : waiters_) { > async_send(waiter); > } > waiters_.clear(); > } > > > Regards, > Artyom > > > On Sat, Jan 2, 2016 at 1:32 PM, eric middelkoop > <mid...@gm...> wrote: > > Hi, > > > > I'm developing a robot that is controlled via the browser by issuing > > commands. > > > > Apart from the cppcms applications that are started from main, the server > > has an additional thread for controlling the motors: robotThread > > > > While the robotThread is acting on a command I like it to report progress > > back to the browser so that I can follow what exactly it is doing. > > > > The idea is to use ticker-example http://blog.cppcms.com/post/107 and > > replace the timed updates by something like a boost::signals2 slot so > that > > progress in the robotThread can be reported to the cppcms comet > application > > that can report it to the browser. > > > > Enclosed is the sourcecode of a small testprogram based on the ticker > > example. It does not compile because of an error: use of deleted function > > ‘ticker::ticker(const ticker&). I can't find a way to connect the cppcms > > comet application to the signal. > > > > Do you have any idea how to do this or any other way to use the cppcms > comet > > application as a proxy between server and webclient? > > > > Kind regards, > > Eric > > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Groetjes, Eric http://www.lightandmagicphotography.nl http://www.lightandmagicphotography.com |
From: Artyom B. <art...@gm...> - 2016-01-02 17:01:39
|
Hi, You have two issues: 1st of all your code does not compile because sig.connect tries to copy the ticker class which isn't something you actually want. And in general if you already using boost::signals2 you should also use its automatic disconnection handling. So first change would be boost::signals2::scoped_connection conn; void connectSlot() { conn = std::move(sig.connect([this](double v) { this->on_new_value(v); })); } Now the second issue is that you should be aware of the fact that the robot thread and application thread are different so what you need to do is to use service().post(handler) to post code execution to the main event loop of the cppcms: void on_new_value(double v) { service().post([=]() { // post for execution in relevant thread this->handle(v); }); } // now actual work void handle(double new_one) { cout << "SLOT CALLED" << endl; counter_++; price_ = new_one; for(auto waiter : waiters_) { async_send(waiter); } waiters_.clear(); } Regards, Artyom On Sat, Jan 2, 2016 at 1:32 PM, eric middelkoop <mid...@gm...> wrote: > Hi, > > I'm developing a robot that is controlled via the browser by issuing > commands. > > Apart from the cppcms applications that are started from main, the server > has an additional thread for controlling the motors: robotThread > > While the robotThread is acting on a command I like it to report progress > back to the browser so that I can follow what exactly it is doing. > > The idea is to use ticker-example http://blog.cppcms.com/post/107 and > replace the timed updates by something like a boost::signals2 slot so that > progress in the robotThread can be reported to the cppcms comet application > that can report it to the browser. > > Enclosed is the sourcecode of a small testprogram based on the ticker > example. It does not compile because of an error: use of deleted function > ‘ticker::ticker(const ticker&). I can't find a way to connect the cppcms > comet application to the signal. > > Do you have any idea how to do this or any other way to use the cppcms comet > application as a proxy between server and webclient? > > Kind regards, > Eric > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: eric m. <mid...@gm...> - 2016-01-02 11:32:58
|
Hi, I'm developing a robot that is controlled via the browser by issuing commands. Apart from the cppcms applications that are started from main, the server has an additional thread for controlling the motors: robotThread While the robotThread is acting on a command I like it to report progress back to the browser so that I can follow what exactly it is doing. The idea is to use ticker-example http://blog.cppcms.com/post/107 and replace the timed updates by something like a boost::signals2 slot so that progress in the robotThread can be reported to the cppcms comet application that can report it to the browser. Enclosed is the sourcecode of a small testprogram based on the ticker example. It does not compile because of an error: use of deleted function ‘ticker::ticker(const ticker&). I can't find a way to connect the cppcms comet application to the signal. Do you have any idea how to do this or any other way to use the cppcms comet application as a proxy between server and webclient? Kind regards, Eric |
From: CN <cn...@fa...> - 2015-12-31 15:48:34
|
On Thu, Dec 24, 2015, at 06:20 PM, Artyom Beilis wrote: > I want you guys to looking on it - try to build the version from > trunk, try new API _**and report your impressions**_. Hi! Artyom, It's very nice to know CppCMS is under active development :-) I have just switched to application_specific_pool and have not encountered any issue with this new API *during last 10 minutes* :-) Meanwhile, I want to take this chance to show off my modifications to my local version of rpc_json.cpp as follows: * Comment out line 162: BOOSTER_DEBUG("cppcms") << "JSON-RPC Method call:" << method(); * Change line 181 from return_error("Invalid parameters"); to return_error("Invalid parameters passed to JSON RPC method \""+method()+"\""); * Change line 191 from return_error("Internal Service Error"); to return_error("Invalid JSON RPC method: "+method()); CppCMS rocks! Simply can not find a single reason not using this superb product and learning much C++ skills from it. Happy new year! CN -- http://www.fastmail.com - Email service worth paying for. Try it for free |
From: Klaim - J. L. <mj...@gm...> - 2015-12-28 19:26:29
|
For information: Last email I sent to you Artyom was about your emails (from yahoo) being flagged as spam in my gmail. It was in April 2014 so it started before that (the year before I think). You should be able to find that email again if you didn't delete it, I still have it. Joël Lamotte On 28 December 2015 at 12:43, Василий Теркин <par...@gm...> wrote: > Helo, Artyom. > Unfortunately (or, better, fortunately), I can't reproduce my previous > troubles with pid file overwriting. > May be, that was my mistake, and the pid file was replaced by init script > while created by the daemon. > Anyway, pid file creation after setuid is not convinient for me. I would > stay with systemd if you dont mind :) > Current systemd config ("daemon" section is absent in cppcms config): > ------------------ > [Unit] > Description=Lightning app server > After=network.target > > [Service] > ExecStart=/opt/lightning/lightning > Type=simple > ExecReload=/bin/kill -HUP $MAINPID > ExecStop=/bin/kill $MAINPID > Restart=on-abnormal > User=www-data > > [Install] > WantedBy=multi-user.target > ------------------ > Thanks for support! > Andrey > > 2015-12-26 16:03 GMT+03:00 Artyom Beilis <art...@gm...>: > >> I meant all the code, config files including systemd configuration and >> sample app. If you can reproduce it on 'hello world' example. >> >> Because I have just tested it and it works as expected >> >> On Saturday, December 26, 2015, Василий Теркин <par...@gm...> >> wrote: >> > step by step: >> > 1) use daemon config with fork, setuid and pid file >> > On second start the daemon replaces its old pid file, finds the socket >> being busy and exits. Thus we got healthy daemon and incorrect pid file. >> > 2) put pid file handling inside init script: >> > PID=`$DAEMON $DAEMONOPT... ans so on >> > The daemon unable to setuid by itself. >> > Direct call without ` lets the daemon setuid successfully, but i can't >> handle pid file again. >> > 3) simplest systemd config resolves all the problems, the daemon starts >> as regular application. >> > Unfortunately, everything is at work - i can't get configs right now >> (very typical ones). >> > 2015-12-26 14:12 GMT+03:00 Artyom Beilis <art...@gm...>: >> >> >> >> First of all CppCMS can setuid for you: >> >> http://cppcms.com/wikipp/en/page/cppcms_1x_config#daemon >> >> >> >> You can provide both user and group and the process would setuid from >> root to limited account while being capable >> >> of listening on ports like 80. >> >> Now if you start the process like this PID=`$DAEMON $DAEMONOPT and >> saving PID file to lock file it would indeed not work. >> >> CppCMS service creates its own lock file and daemonizes itself. >> Service PID is stored in the lock file and its content >> >> should be used to stop to process and check if it is up. >> >> Can you show your full systemd configuration and your CppCMS config. >> >> Artyom >> >> P.S.: If you don't mind send a reply to CppCMS users list so others >> can learn and probably help. >> >> On Sat, Dec 26, 2015 at 12:47 PM, Василий Теркин < >> par...@gm...> wrote: >> >>> >> >>> 2015-12-26 0:34 GMT+03:00 Artyom Beilis <art...@gm...>: >> >>>> >> >>>> >> >>>> On Fri, Dec 25, 2015 at 11:19 PM, Василий Теркин < >> par...@gm...> wrote: >> >>>>> >> >>>>> Hello, Artyom. That's right - no questions, no answers. >> >>>> >> >>>> >> >>>> Can you find them in Spam or they just gone? The one regarding >> CppCMS 1.1 progress is just from few days ago. >> >>> >> >>> oh, sh%t.. i'am very sorry - that's my fault >> >>> I have two merged gmail accouts: google downloads everything from >> par...@gm... and let me write emails on behalf of both. >> >>> But the issue is spam - it never gets into "parent" account, and >> that's why i hadn't found it. >> >>> I apologize. >> >>> >> >>>>> >> >>>>> * one more thing.. cppcms has an daemon option with pid file, but >> it doesn't use it itself. If the daemon starts second time it replaces the >> old pid file, finds the socket being busy and exits. Thus we got healthy >> daemon and incorrect pid file. Thanks to systemd - all of these daemon >> options may not be used or customized by myself. >> >>>> >> >>>> Actually it shouldn't be like that the lock file is not overwritten >> when it exists . You get socket in use (as it in use) but PID file >> >>>> should remain unmodified. >> >>>> Are you sure it works the way you described? It shouldn't. Can it be >> the case you "remove" lock file before process starts >> >>>> as "cleanup"? >> >>> >> >>> It works exactly this way for me. This is the only reason i got to >> know systemd (and i found it to be very convenient). >> >>> Plus, when daemon start command is nested into sh command (typical: >> PID=`$DAEMON $DAEMONOPTS > /dev/null 2>&1 & echo $!`) >> >>> the daemon is unable to setuid. Thus, resolving one problem creates >> another one. >> >>> Thanks again for feedback. >> >>> Andrey >> > >> > >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Василий Т. <par...@gm...> - 2015-12-28 11:44:02
|
Helo, Artyom. Unfortunately (or, better, fortunately), I can't reproduce my previous troubles with pid file overwriting. May be, that was my mistake, and the pid file was replaced by init script while created by the daemon. Anyway, pid file creation after setuid is not convinient for me. I would stay with systemd if you dont mind :) Current systemd config ("daemon" section is absent in cppcms config): ------------------ [Unit] Description=Lightning app server After=network.target [Service] ExecStart=/opt/lightning/lightning Type=simple ExecReload=/bin/kill -HUP $MAINPID ExecStop=/bin/kill $MAINPID Restart=on-abnormal User=www-data [Install] WantedBy=multi-user.target ------------------ Thanks for support! Andrey 2015-12-26 16:03 GMT+03:00 Artyom Beilis <art...@gm...>: > I meant all the code, config files including systemd configuration and > sample app. If you can reproduce it on 'hello world' example. > > Because I have just tested it and it works as expected > > On Saturday, December 26, 2015, Василий Теркин <par...@gm...> > wrote: > > step by step: > > 1) use daemon config with fork, setuid and pid file > > On second start the daemon replaces its old pid file, finds the socket > being busy and exits. Thus we got healthy daemon and incorrect pid file. > > 2) put pid file handling inside init script: > > PID=`$DAEMON $DAEMONOPT... ans so on > > The daemon unable to setuid by itself. > > Direct call without ` lets the daemon setuid successfully, but i can't > handle pid file again. > > 3) simplest systemd config resolves all the problems, the daemon starts > as regular application. > > Unfortunately, everything is at work - i can't get configs right now > (very typical ones). > > 2015-12-26 14:12 GMT+03:00 Artyom Beilis <art...@gm...>: > >> > >> First of all CppCMS can setuid for you: > >> http://cppcms.com/wikipp/en/page/cppcms_1x_config#daemon > >> > >> You can provide both user and group and the process would setuid from > root to limited account while being capable > >> of listening on ports like 80. > >> Now if you start the process like this PID=`$DAEMON $DAEMONOPT and > saving PID file to lock file it would indeed not work. > >> CppCMS service creates its own lock file and daemonizes itself. Service > PID is stored in the lock file and its content > >> should be used to stop to process and check if it is up. > >> Can you show your full systemd configuration and your CppCMS config. > >> Artyom > >> P.S.: If you don't mind send a reply to CppCMS users list so others can > learn and probably help. > >> On Sat, Dec 26, 2015 at 12:47 PM, Василий Теркин <par...@gm...> > wrote: > >>> > >>> 2015-12-26 0:34 GMT+03:00 Artyom Beilis <art...@gm...>: > >>>> > >>>> > >>>> On Fri, Dec 25, 2015 at 11:19 PM, Василий Теркин < > par...@gm...> wrote: > >>>>> > >>>>> Hello, Artyom. That's right - no questions, no answers. > >>>> > >>>> > >>>> Can you find them in Spam or they just gone? The one regarding CppCMS > 1.1 progress is just from few days ago. > >>> > >>> oh, sh%t.. i'am very sorry - that's my fault > >>> I have two merged gmail accouts: google downloads everything from > par...@gm... and let me write emails on behalf of both. > >>> But the issue is spam - it never gets into "parent" account, and > that's why i hadn't found it. > >>> I apologize. > >>> > >>>>> > >>>>> * one more thing.. cppcms has an daemon option with pid file, but it > doesn't use it itself. If the daemon starts second time it replaces the old > pid file, finds the socket being busy and exits. Thus we got healthy daemon > and incorrect pid file. Thanks to systemd - all of these daemon options may > not be used or customized by myself. > >>>> > >>>> Actually it shouldn't be like that the lock file is not overwritten > when it exists . You get socket in use (as it in use) but PID file > >>>> should remain unmodified. > >>>> Are you sure it works the way you described? It shouldn't. Can it be > the case you "remove" lock file before process starts > >>>> as "cleanup"? > >>> > >>> It works exactly this way for me. This is the only reason i got to > know systemd (and i found it to be very convenient). > >>> Plus, when daemon start command is nested into sh command (typical: > PID=`$DAEMON $DAEMONOPTS > /dev/null 2>&1 & echo $!`) > >>> the daemon is unable to setuid. Thus, resolving one problem creates > another one. > >>> Thanks again for feedback. > >>> Andrey > > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: mawan s. <ma...@gm...> - 2015-12-27 09:08:24
|
Thankyou Artyom I'll try it Happy New Year ... On Dec 27, 2015 2:14 AM, "Artyom Beilis" <art...@gm...> wrote: > Hello Dear CppCMS Users, > > If someone getting this as duplicate my apologize. > (Apparently GMail does not like my Yahoo mail sent via mailman :-) ) > > -------------------- > > I'm getting ready to release next CppCMS beta version 1.1 (that would > become stable as 1.2) > > Some preview of the work that was done so far: > > http://cppcms.com/wikipp/en/page/cppcms_1_2_whats_new > > In the nutshell > > - Redesigned applications pool and its API. > - New non-blocking I/O mode for asynchronous applications. > - On-the-fly uploads/post content processing support. > - Independent of context use of cache and session interfaces > - Support of non-cookies based session handling > - Integration of session handling with 3rd part technologies: > PHP, Java Servlet, Aps.Net and so on and contributed modules. > http://blog.cppcms.com/post/117 > - Major performance and memory use improvements. > - Headers and Source separation by templates compiler. > (Special thanks to Lee Elenbaas for the major contribution) > > There are still few relatively small tasks in the TODO list before > beta will be officially ready. > > > http://cppcms.com/wikipp/en/page/cppcms_1x_tasks#CppCMS.1.1.0.-.Next.Release > > More than that I'm changing the release policy to something that I > should do for a looooong time ago: > > --- release early, release often --- > > CppCMS 1.1 was for too long in development and it isn't good... > > I want you guys to looking on it: > > - Try to build the version from trunk > - Try new API and report your impressions. > - Ask questions. > > If some API issues are discovered I can make API changes before 1.2 is out. > However once 1.2 is released... the API will be frozen. > > Thank You Very Much. > > I'm expecting feedback. > > Artyom Beilis > > > ------------------------------------------------------------------------------ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@gm...> - 2015-12-27 08:27:52
|
On Sun, Dec 27, 2015 at 9:27 AM, CN <cn...@fa...> wrote: > Suppose each synchronous application establishes exact one > cppdb::connection passed with @pool_size=3. Imagine now there are 3 > synchronous applications concurrently running in 3 threads. > > What will happen if a synchronous application is launched to run as the > 4th thread? Will it be blocked at > No the connection will be created but when on attempt to recycle it into the pool the "full pool" will be detected and the connection will be deleted. i.e. @pool_size=3 means that no more than 3 connections are kept for reuse. Artyom |
From: CN <cn...@fa...> - 2015-12-27 07:27:38
|
Hi! Suppose each synchronous application establishes exact one cppdb::connection passed with @pool_size=3. Imagine now there are 3 synchronous applications concurrently running in 3 threads. What will happen if a synchronous application is launched to run as the 4th thread? Will it be blocked at cppdb::connection myconn("...@pool_size=3...") until some other thread finished its use of cppdb::connection, or the 4th instance of cppdb::connection will be created by the 4th thread regardless of the "limit" imposed by the parameter @pool_size=3? Thank you in advance for the clarification! Best Reagards, CN -- http://www.fastmail.com - Or how I learned to stop worrying and love email again |
From: Hery M. <hma...@gm...> - 2015-12-27 06:00:18
|
Hi Artyom, Great news for the new year which will begin. I will try it and will give you a feedback if I have some problem or remark. I'm able to receive your mail in my reception box now. I suppose the problem is solved. Thank you. Heriniaina Maminirina. 2015-12-26 20:12 GMT+01:00 Artyom Beilis <art...@gm...>: > Hello Dear CppCMS Users, > > If someone getting this as duplicate my apologize. > (Apparently GMail does not like my Yahoo mail sent via mailman :-) ) > > -------------------- > > I'm getting ready to release next CppCMS beta version 1.1 (that would > become stable as 1.2) > > Some preview of the work that was done so far: > > http://cppcms.com/wikipp/en/page/cppcms_1_2_whats_new > > In the nutshell > > - Redesigned applications pool and its API. > - New non-blocking I/O mode for asynchronous applications. > - On-the-fly uploads/post content processing support. > - Independent of context use of cache and session interfaces > - Support of non-cookies based session handling > - Integration of session handling with 3rd part technologies: > PHP, Java Servlet, Aps.Net and so on and contributed modules. > http://blog.cppcms.com/post/117 > - Major performance and memory use improvements. > - Headers and Source separation by templates compiler. > (Special thanks to Lee Elenbaas for the major contribution) > > There are still few relatively small tasks in the TODO list before > beta will be officially ready. > > > http://cppcms.com/wikipp/en/page/cppcms_1x_tasks#CppCMS.1.1.0.-.Next.Release > > More than that I'm changing the release policy to something that I > should do for a looooong time ago: > > --- release early, release often --- > > CppCMS 1.1 was for too long in development and it isn't good... > > I want you guys to looking on it: > > - Try to build the version from trunk > - Try new API and report your impressions. > - Ask questions. > > If some API issues are discovered I can make API changes before 1.2 is out. > However once 1.2 is released... the API will be frozen. > > Thank You Very Much. > > I'm expecting feedback. > > Artyom Beilis > > > ------------------------------------------------------------------------------ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@gm...> - 2015-12-26 19:12:59
|
Hello Dear CppCMS Users, If someone getting this as duplicate my apologize. (Apparently GMail does not like my Yahoo mail sent via mailman :-) ) -------------------- I'm getting ready to release next CppCMS beta version 1.1 (that would become stable as 1.2) Some preview of the work that was done so far: http://cppcms.com/wikipp/en/page/cppcms_1_2_whats_new In the nutshell - Redesigned applications pool and its API. - New non-blocking I/O mode for asynchronous applications. - On-the-fly uploads/post content processing support. - Independent of context use of cache and session interfaces - Support of non-cookies based session handling - Integration of session handling with 3rd part technologies: PHP, Java Servlet, Aps.Net and so on and contributed modules. http://blog.cppcms.com/post/117 - Major performance and memory use improvements. - Headers and Source separation by templates compiler. (Special thanks to Lee Elenbaas for the major contribution) There are still few relatively small tasks in the TODO list before beta will be officially ready. http://cppcms.com/wikipp/en/page/cppcms_1x_tasks#CppCMS.1.1.0.-.Next.Release More than that I'm changing the release policy to something that I should do for a looooong time ago: --- release early, release often --- CppCMS 1.1 was for too long in development and it isn't good... I want you guys to looking on it: - Try to build the version from trunk - Try new API and report your impressions. - Ask questions. If some API issues are discovered I can make API changes before 1.2 is out. However once 1.2 is released... the API will be frozen. Thank You Very Much. I'm expecting feedback. Artyom Beilis |
From: Artyom B. <art...@gm...> - 2015-12-26 15:35:35
|
Thank you a lot it allowed me to pinpoint the issue: In short Yahoo does not recognize mails forwarded by mailman [1]. Something called DMARC Mailman starting from 2.1.16 should support it. Unfortunately Sourceforge's mailman version is 2.1.9 - basically this means GMail is going to scrap mails sent by Yahoo via the list. So until this stuff is going to be fixed I'll access this mailing list via GMail. Artyom [1] http://yahoomail.tumblr.com/post/82426900353/yahoo-dmarc-policy-change-what-should-senders On Sat, Dec 26, 2015 at 2:55 PM, Paolo Bolzoni <pao...@gm...> wrote: > > Beilis, most of your messages go in the gmail spam folder with the error: > > "It has a from address in yahoo.com but has failed yahoo.com's > required tests for authentication." > > Perhaps is a problem in your side? |
From: Artyom B. <art...@gm...> - 2015-12-26 13:03:34
|
I meant all the code, config files including systemd configuration and sample app. If you can reproduce it on 'hello world' example. Because I have just tested it and it works as expected On Saturday, December 26, 2015, Василий Теркин <par...@gm...> wrote: > step by step: > 1) use daemon config with fork, setuid and pid file > On second start the daemon replaces its old pid file, finds the socket being busy and exits. Thus we got healthy daemon and incorrect pid file. > 2) put pid file handling inside init script: > PID=`$DAEMON $DAEMONOPT... ans so on > The daemon unable to setuid by itself. > Direct call without ` lets the daemon setuid successfully, but i can't handle pid file again. > 3) simplest systemd config resolves all the problems, the daemon starts as regular application. > Unfortunately, everything is at work - i can't get configs right now (very typical ones). > 2015-12-26 14:12 GMT+03:00 Artyom Beilis <art...@gm...>: >> >> First of all CppCMS can setuid for you: >> http://cppcms.com/wikipp/en/page/cppcms_1x_config#daemon >> >> You can provide both user and group and the process would setuid from root to limited account while being capable >> of listening on ports like 80. >> Now if you start the process like this PID=`$DAEMON $DAEMONOPT and saving PID file to lock file it would indeed not work. >> CppCMS service creates its own lock file and daemonizes itself. Service PID is stored in the lock file and its content >> should be used to stop to process and check if it is up. >> Can you show your full systemd configuration and your CppCMS config. >> Artyom >> P.S.: If you don't mind send a reply to CppCMS users list so others can learn and probably help. >> On Sat, Dec 26, 2015 at 12:47 PM, Василий Теркин <par...@gm...> wrote: >>> >>> 2015-12-26 0:34 GMT+03:00 Artyom Beilis <art...@gm...>: >>>> >>>> >>>> On Fri, Dec 25, 2015 at 11:19 PM, Василий Теркин <par...@gm...> wrote: >>>>> >>>>> Hello, Artyom. That's right - no questions, no answers. >>>> >>>> >>>> Can you find them in Spam or they just gone? The one regarding CppCMS 1.1 progress is just from few days ago. >>> >>> oh, sh%t.. i'am very sorry - that's my fault >>> I have two merged gmail accouts: google downloads everything from par...@gm... and let me write emails on behalf of both. >>> But the issue is spam - it never gets into "parent" account, and that's why i hadn't found it. >>> I apologize. >>> >>>>> >>>>> * one more thing.. cppcms has an daemon option with pid file, but it doesn't use it itself. If the daemon starts second time it replaces the old pid file, finds the socket being busy and exits. Thus we got healthy daemon and incorrect pid file. Thanks to systemd - all of these daemon options may not be used or customized by myself. >>>> >>>> Actually it shouldn't be like that the lock file is not overwritten when it exists . You get socket in use (as it in use) but PID file >>>> should remain unmodified. >>>> Are you sure it works the way you described? It shouldn't. Can it be the case you "remove" lock file before process starts >>>> as "cleanup"? >>> >>> It works exactly this way for me. This is the only reason i got to know systemd (and i found it to be very convenient). >>> Plus, when daemon start command is nested into sh command (typical: PID=`$DAEMON $DAEMONOPTS > /dev/null 2>&1 & echo $!`) >>> the daemon is unable to setuid. Thus, resolving one problem creates another one. >>> Thanks again for feedback. >>> Andrey > > |
From: Paolo B. <pao...@gm...> - 2015-12-26 12:55:55
|
I found the old email, I copy it back as it contained the exact error message: 8< ------------------ From: Paolo Bolzoni <pao...@gm...> Date: Thu, Mar 19, 2015 at 2:34 AM Subject: Re: [Cppcms-users] Current Develoment To: Artyom Beilis <art...@ya...>, cpp...@li... Beilis, most of your messages go in the gmail spam folder with the error: "It has a from address in yahoo.com but has failed yahoo.com's required tests for authentication." Perhaps is a problem in your side? ------------------ >8 On Sat, Dec 26, 2015 at 8:39 PM, Hery Maminirina <hma...@gm...> wrote: > Hy Artyom, > > After check I never received them, thank a lot to tell us for checking. I > was never aware that the reception of your email to the existence of all > this information from you. > > Thank you. > > HERINIAINA Maminirina. > > > > > 2015-12-25 19:10 GMT+01:00 Artyom Beilis <art...@gm...>: >> >> Hello, >> >> I'm Artyom Beilis the project maintainer and I'm sending this mail from my >> different e-mail account - on GMail (my primary account is on Yahoo) >> >> I have strong suspicions that some of my e-mails go directly to spam >> folder. >> >> Can you please check if some of these e-mails were not received: >> >> CppCMS 1.1 Progress report : >> https://sourceforge.net/p/cppcms/mailman/message/34718381/ >> Liggin (logging - my reply) >> https://sourceforge.net/p/cppcms/mailman/message/34668147/ >> Session Sharing with Non-CppCMS technologies: >> https://sourceforge.net/p/cppcms/mailman/message/34623273/ >> CppCMS interoperability with other web frameworks - which ones? >> https://sourceforge.net/p/cppcms/mailman/message/34622438/ >> >> I noticed that some does not receive my response or see it as quite of >> some other users posting to the list. >> >> Can you please check if you got the original e-mails to the list. >> >> Thank You, >> >> Artyom Beilis >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Василий Т. <par...@gm...> - 2015-12-26 12:54:20
|
step by step: 1) use daemon config with fork, setuid and pid file On second start the daemon replaces its old pid file, finds the socket being busy and exits. Thus we got healthy daemon and incorrect pid file. 2) put pid file handling inside init script: PID=`$DAEMON $DAEMONOPT... ans so on The daemon unable to setuid by itself. Direct call without ` lets the daemon setuid successfully, but i can't handle pid file again. 3) simplest systemd config resolves all the problems, the daemon starts as regular application. Unfortunately, everything is at work - i can't get configs right now (very typical ones). 2015-12-26 14:12 GMT+03:00 Artyom Beilis <art...@gm...>: > First of all CppCMS can setuid for you: > > http://cppcms.com/wikipp/en/page/cppcms_1x_config#daemon > > You can provide both user and group and the process would setuid from root > to limited account while being capable > of listening on ports like 80. > > Now if you start the process like this PID=`$DAEMON $DAEMONOPT and saving > PID file to lock file it would indeed not work. > > CppCMS service creates its own lock file and daemonizes itself. Service > PID is stored in the lock file and its content > should be used to stop to process and check if it is up. > > Can you show your full systemd configuration and your CppCMS config. > > Artyom > > P.S.: If you don't mind send a reply to CppCMS users list so others can > learn and probably help. > > On Sat, Dec 26, 2015 at 12:47 PM, Василий Теркин <par...@gm...> > wrote: > >> >> 2015-12-26 0:34 GMT+03:00 Artyom Beilis <art...@gm...>: >> >>> >>> >>> On Fri, Dec 25, 2015 at 11:19 PM, Василий Теркин <par...@gm...> >>> wrote: >>> >>>> Hello, Artyom. That's right - no questions, no answers. >>>> >>> >>> Can you find them in Spam or they just gone? The one regarding CppCMS >>> 1.1 progress is just from few days ago. >>> >> >> oh, sh%t.. i'am very sorry - that's my fault >> I have two merged gmail accouts: google downloads everything from >> par...@gm... and let me write emails on behalf of both. >> But the issue is spam - it never gets into "parent" account, and that's >> why i hadn't found it. >> I apologize. >> >> >>> * one more thing.. cppcms has an daemon option with pid file, but it >>>> doesn't use it itself. If the daemon starts second time it replaces the old >>>> pid file, finds the socket being busy and exits. Thus we got healthy daemon >>>> and incorrect pid file. Thanks to systemd - all of these daemon options may >>>> not be used or customized by myself. >>>> >>> >>> Actually it shouldn't be like that the lock file is not overwritten when >>> it exists . You get socket in use (as it in use) but PID file >>> should remain unmodified. >>> >>> Are you sure it works the way you described? It shouldn't. Can it be the >>> case you "remove" lock file before process starts >>> as "cleanup"? >>> >> >> It works exactly this way for me. This is the only reason i got to know >> systemd (and i found it to be very convenient). >> Plus, when daemon start command is nested into sh command (typical: PID=`$DAEMON >> $DAEMONOPTS > /dev/null 2>&1 & echo $!`) >> the daemon is unable to setuid. Thus, resolving one problem creates >> another one. >> >> Thanks again for feedback. >> >> Andrey >> > > |
From: Hery M. <hma...@gm...> - 2015-12-26 12:14:15
|
Confirmed, all your mails are redirected to the gmail spam directory. Thanks a lot for the informations. HERINIAINA Maminirina. 2015-12-25 19:10 GMT+01:00 Artyom Beilis <art...@gm...>: > Hello, > > I'm Artyom Beilis the project maintainer and I'm sending this mail from my > different e-mail account - on GMail (my primary account is on Yahoo) > > I have strong suspicions that some of my e-mails go directly to spam > folder. > > Can you please check if some of these e-mails were not received: > > CppCMS 1.1 Progress report : > https://sourceforge.net/p/cppcms/mailman/message/34718381/ > Liggin (logging - my reply) > https://sourceforge.net/p/cppcms/mailman/message/34668147/ > Session Sharing with Non-CppCMS technologies: > https://sourceforge.net/p/cppcms/mailman/message/34623273/ > CppCMS interoperability with other web frameworks - which ones? > https://sourceforge.net/p/cppcms/mailman/message/34622438/ > > I noticed that some does not receive my response or see it as quite of > some other users posting to the list. > > Can you please check if you got the original e-mails to the list. > > Thank You, > > Artyom Beilis > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Hery M. <hma...@gm...> - 2015-12-26 11:40:01
|
Hy Artyom, After check I never received them, thank a lot to tell us for checking. I was never aware that the reception of your email to the existence of all this information from you. Thank you. HERINIAINA Maminirina. 2015-12-25 19:10 GMT+01:00 Artyom Beilis <art...@gm...>: > Hello, > > I'm Artyom Beilis the project maintainer and I'm sending this mail from my > different e-mail account - on GMail (my primary account is on Yahoo) > > I have strong suspicions that some of my e-mails go directly to spam > folder. > > Can you please check if some of these e-mails were not received: > > CppCMS 1.1 Progress report : > https://sourceforge.net/p/cppcms/mailman/message/34718381/ > Liggin (logging - my reply) > https://sourceforge.net/p/cppcms/mailman/message/34668147/ > Session Sharing with Non-CppCMS technologies: > https://sourceforge.net/p/cppcms/mailman/message/34623273/ > CppCMS interoperability with other web frameworks - which ones? > https://sourceforge.net/p/cppcms/mailman/message/34622438/ > > I noticed that some does not receive my response or see it as quite of > some other users posting to the list. > > Can you please check if you got the original e-mails to the list. > > Thank You, > > Artyom Beilis > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Artyom B. <art...@gm...> - 2015-12-26 11:16:09
|
On Sat, Dec 26, 2015 at 6:53 AM, Paolo Bolzoni <pao...@gm...> wrote: > > Same here, we actually told you weeks ago... > gmail checks the address, see that is from yahoo but it fails some > kind of checking so it assumes it is spam. > Thanks, I probably missed (or accidentially dismissed) this one Artyom |
From: Paolo B. <pao...@gm...> - 2015-12-26 04:53:20
|
Same here, we actually told you weeks ago... gmail checks the address, see that is from yahoo but it fails some kind of checking so it assumes it is spam. On Sat, Dec 26, 2015 at 9:44 AM, Marius Cirsta <mf...@gm...> wrote: > CppCMS 1.1 Progress report (scoop 1st beta is coming...) and the rest > of them were all in the spam folder as many of your emails from your > yahoo account sent to my gmail. I had to create a special filter to > send them to my inbox ( see how much I value your emails, lol ). It > kept complaining that your emails seem to not come from yahoo servers > themselves or something like that. > > Since I created the filters it just says that it didn't send them to > spam because I asked it not to. > > On Sat, Dec 26, 2015 at 2:32 AM, redred77 <red...@gm...> wrote: >> I received "CppCMS 1.1 Progress report". Well it was found from spam >> folder. >> >> Other mails you mentioned are not found even in spam folder. Gmail's spam >> folder is deleted automatically in certain period but I don't think that >> caused the problem since your mails are not old enough. >> >> I see your message from other people's reply mail but not from your original >> message time to time. >> >> As you can see, I'm using gmail. >> >> Thanks. >> >> Hello, >> >> I'm Artyom Beilis the project maintainer and I'm sending this mail from my >> different e-mail account - on GMail (my primary account is on Yahoo) >> >> I have strong suspicions that some of my e-mails go directly to spam folder. >> >> Can you please check if some of these e-mails were not received: >> >> CppCMS 1.1 Progress report : >> https://sourceforge.net/p/cppcms/mailman/message/34718381/ >> Liggin (logging - my reply) >> https://sourceforge.net/p/cppcms/mailman/message/34668147/ >> Session Sharing with Non-CppCMS technologies: >> https://sourceforge.net/p/cppcms/mailman/message/34623273/ >> CppCMS interoperability with other web frameworks - which ones? >> https://sourceforge.net/p/cppcms/mailman/message/34622438/ >> >> I noticed that some does not receive my response or see it as quite of some >> other users posting to the list. >> >> Can you please check if you got the original e-mails to the list. >> >> Thank You, >> >> Artyom Beilis >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > ------------------------------------------------------------------------------ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |