cppcms-users Mailing List for CppCMS C++ Web Framework (Page 32)
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: Paolo B. <pao...@gm...> - 2015-03-16 11:43:38
|
Sorry, the answer was meant to Marcel, the other email were eaten by gmail spam filter... On Mon, Mar 16, 2015 at 12:39 PM, Paolo Bolzoni <pao...@gm...> wrote: > I am using nginx, but I need to start the cppcms application > separately. Am I wrong? > > On Mon, Mar 16, 2015 at 10:48 AM, Marcel Hellwig <ke...@co...> wrote: >> I suppose you are trying to use a port below 1024, because that are root >> only ports. Try to use an other port. >> >> Btw: why don't you use nginx as http server and fast_cgi as recommended >> by [0]? >> >> Greetings, >> Marcel >> >> [0] http://cppcms.com/wikipp/en/page/cppcms_1x_tut_web_server_config >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub for all >> things parallel software development, from weekly thought leadership blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> |
From: Paolo B. <pao...@gm...> - 2015-03-16 11:39:43
|
I am using nginx, but I need to start the cppcms application separately. Am I wrong? On Mon, Mar 16, 2015 at 10:48 AM, Marcel Hellwig <ke...@co...> wrote: > I suppose you are trying to use a port below 1024, because that are root > only ports. Try to use an other port. > > Btw: why don't you use nginx as http server and fast_cgi as recommended > by [0]? > > Greetings, > Marcel > > [0] http://cppcms.com/wikipp/en/page/cppcms_1x_tut_web_server_config > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2015-03-16 11:02:38
|
Note - you try to use Unix socket factory (not TCP) - make sure you have correct permissions on that socketand you can remove it. Probably it should run under same user as web server - or use TCP/IP instead However just changing the executing user the cppblog crashes with a "address already in use error," here is the log: Failed: system: Address already in use 0x7f146c5f6ebb: booster::system::system_error::system_error(booster::system::error_code const&) + 0x13b in /usr/lib/libcppcms.so.1 0x7f146c2c7bb7: booster::aio::acceptor::bind(booster::aio::endpoint const&) + 0x67 in /usr/lib/libbooster.so.0 0x7f146c6cfce0: cppcms::impl::cgi::fastcgi_api_unix_socket_factory(cppcms::service&, std::string, int) + 0xc0 in /usr/lib/libcppcms.so.1 0x7f146c5f0bac: cppcms::service::setup_acceptor(cppcms::json::value const&, int, int) + 0x68c in /usr/lib/libcppcms.so.1 0x7f146c5f137e: cppcms::service::start_acceptor(bool) + 0x17e in /usr/lib/libcppcms.so.1 0x7f146c5f3e19: cppcms::service::run() + 0x29 in /usr/lib/libcppcms.so.1 0x41d036: main + 0x76 in /usr/bin/cppblog 0x7f146b30e800: __libc_start_main + 0xf0 in /usr/lib/libc.so.6 0x41de39: _start + 0x29 in /usr/bin/cppblog To make the situation even more confusing, if I try to execute via command line with sudo -u it works fine... What am I doing wrong? Any idea of what I can try? ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@ya...> - 2015-03-16 11:00:43
|
First of all according to the error check if somebody uses this port... I'm not familiar with systemd but CppCMS service should have all you need Note: (a) you can define the user and daemon settings at cppcms level Take a look on this: http://cppcms.com/wikipp/en/page/cppcms_1x_config#daemon(b) you can define user the service runs under in the same section @Marcel nginx can't start/stop fastcgi service by his own... one of the reasons I really don't like it so you need to configure the service independently. BTW it uses fastcgi according to the backtrace Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Marcel Hellwig <ke...@co...> To: cpp...@li... Sent: Monday, March 16, 2015 11:48 AM Subject: Re: [Cppcms-users] cppblog and systemd I suppose you are trying to use a port below 1024, because that are root only ports. Try to use an other port. Btw: why don't you use nginx as http server and fast_cgi as recommended by [0]? Greetings, Marcel [0] http://cppcms.com/wikipp/en/page/cppcms_1x_tut_web_server_config ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Marcel H. <ke...@co...> - 2015-03-16 10:04:35
|
I suppose you are trying to use a port below 1024, because that are root only ports. Try to use an other port. Btw: why don't you use nginx as http server and fast_cgi as recommended by [0]? Greetings, Marcel [0] http://cppcms.com/wikipp/en/page/cppcms_1x_tut_web_server_config |
From: Paolo B. <pao...@gm...> - 2015-03-15 21:50:50
|
I wanted to write a systemd file to execute cppblog, here is the content: -------- >8 [Unit] Description=A high performance blog based on cppcms After=network.target [Service] Type=simple WorkingDirectory=/var/blog ExecStart=/usr/bin/cppblog -c config.js [Install] WantedBy=multi-user.target -------- >8 As you can see it is very simple and apparently it works, however I would like to execute cppblog as a http user, so I added User=http in the [Service] section. However just changing the executing user the cppblog crashes with a "address already in use error," here is the log: Failed: system: Address already in use 0x7f146c5f6ebb: booster::system::system_error::system_error(booster::system::error_code const&) + 0x13b in /usr/lib/libcppcms.so.1 0x7f146c2c7bb7: booster::aio::acceptor::bind(booster::aio::endpoint const&) + 0x67 in /usr/lib/libbooster.so.0 0x7f146c6cfce0: cppcms::impl::cgi::fastcgi_api_unix_socket_factory(cppcms::service&, std::string, int) + 0xc0 in /usr/lib/libcppcms.so.1 0x7f146c5f0bac: cppcms::service::setup_acceptor(cppcms::json::value const&, int, int) + 0x68c in /usr/lib/libcppcms.so.1 0x7f146c5f137e: cppcms::service::start_acceptor(bool) + 0x17e in /usr/lib/libcppcms.so.1 0x7f146c5f3e19: cppcms::service::run() + 0x29 in /usr/lib/libcppcms.so.1 0x41d036: main + 0x76 in /usr/bin/cppblog 0x7f146b30e800: __libc_start_main + 0xf0 in /usr/lib/libc.so.6 0x41de39: _start + 0x29 in /usr/bin/cppblog To make the situation even more confusing, if I try to execute via command line with sudo -u it works fine... What am I doing wrong? Any idea of what I can try? |
From: Joerg S. <jo...@br...> - 2015-03-15 19:42:01
|
On Sun, Mar 15, 2015 at 06:54:09PM +0000, Artyom Beilis wrote: > In any case FastCGI contains "end of data termination" and > content length isn't required by HTTP, actually HTTP/1.1 supports > chunked transfer encoding to eliminate need of content-lenght. It is still helpful for clients if the server sends content-length, if it is known at the beginning of the transfer. For HTTP/1.0, it is the only way to support keep-alive and to reliably detect the end of transmission. For HTTP/1.1, it reduces the overhead by avoiding chunked transfer encoding. It also allows progress reports, something sadly too many sites nowadays break even for static content. There are some broken CDNs even. In short, if you know the size of the content, set content-length. But that's an unrelated topic, I still don't even understand OP's original problem. Joerg |
From: Artyom B. <art...@ya...> - 2015-03-15 18:57:10
|
???? In any case FastCGI contains "end of data termination" andcontent length isn't required by HTTP, actually HTTP/1.1 supportschunked transfer encoding to eliminate need of content-lenght. In any way - my personal recommendation nginx or lighttpd... go with lighttpd. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Василий Теркин <par...@gm...> To: cpp...@li... Sent: Sunday, March 15, 2015 6:39 PM Subject: Re: [Cppcms-users] pending request i beg your pardon, guysnginx: fastcgi_pass localhost:5555; -> fastcgi_pass 127.0.0.1:5555; did the trick. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Василий Т. <par...@gm...> - 2015-03-15 16:39:46
|
i beg your pardon, guys nginx: fastcgi_pass localhost:5555; -> fastcgi_pass 127.0.0.1:5555; did the trick. |
From: Василий Т. <par...@gm...> - 2015-03-15 16:19:33
|
content-length and nginx's keepalive_timeout (initiallt it was close to 1 minute.. who knows) do not help, GET and POST requests behave the same i'm stuck with it :( |
From: Василий Т. <par...@gm...> - 2015-03-15 15:23:40
|
it looks like about content-length.. I've changed requests from get to post to exclude browser caching - there is not content-length header in response. Never seen content_length() in cppcms examples.. What is the best way to get the size of json object being passed to response() ? |
From: Василий Т. <par...@gm...> - 2015-03-14 14:13:22
|
Hello everybody. I've got strange behaviour of cppcms (or nginx?). The browser sets pending state for ajax request to cppcms fastcgi app with caution "Provisional headers are shown". *Exactly* 1 min later the response come back *successfully*. This is about both firefox and google chrome. And both waits for exactly 1 minute. Nginx log fills with such kind of messages: 2015/03/14 16:40:09 [error] 3824#0: *200 upstream timed out (110: Connection timed out) while connecting to upstream, client: 192.168.88.10, server: my.server, request: "POST /ajax/user_corner HTTP/1.1", upstream: "fastcgi://[::1]:5555", host: "my.server", referrer: "http://my.server/". nginx conf location ~ /ajax/.+ { fastcgi_pass localhost:5555; fastcgi_pass_header "X-Accel-Redirect"; add_header Cache-Control "max-age=0, no-cache, no-store"; fastcgi_split_path_info ^(.*/ajax)(.+)$; fastcgi_param PATH_INFO $fastcgi_script_name$fastcgi_path_info; include fastcgi_params; } cppcms app conf ... "session" : { "expire" : "renew", "timeout" : 604800, "location" : "client", "client" : { "hmac" : "sha1", "hmac_key" : "my key" }, "cookies" : { "prefix" : "mantra" } }, "service" : { "api" : "fastcgi", "port" : 5555, "ip" : "127.0.0.1", "worker_processes" : 0 }, "daemon" : { "enable" : false, "lock" : "/home/me/test.lock", "user" : "nginx", "group" : "nginx" }, "cache" : { "backend" : "thread_shared", "limit" : 128 }, ... Cppcms console is lack of errors. The app is the simplest synchronous one. It looks like cppcms does not respond to request. 1 more moment: if i refresh the page in series (forcing ajax call), 1 pass is successfull, another one is not. Some part (which one?) of chain creates pause for 1 min => everybody waits for it to finish while cppcms app already done => another call (on refresh) is OK. Digging into google does not help :( Please, someone.. |
From: Artyom B. <art...@ya...> - 2015-03-11 10:46:56
|
No there is no such a property on cppcms cookies... HttpOnly is in general non-standard, broken, badly supported by browsers and best not to be used at all - feeling false safely. So it isn't included. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Василий Теркин <par...@gm...> To: cpp...@li... Sent: Tuesday, March 10, 2015 3:16 PM Subject: [Cppcms-users] HttpOnly cookie Hello.Is there a way to create HttpOnly cookie?Thanks. Andrey L. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Василий Т. <par...@gm...> - 2015-03-10 13:16:57
|
Hello. Is there a way to create HttpOnly cookie? Thanks. Andrey L. |
From: Artyom B. <art...@ya...> - 2015-03-03 08:06:06
|
1st of all CppCMS is web-server agnostic and supports standard proticols like FastCGI or SCGI.2nd I don't think that in real world you'll get much advantage over nginx or lighttpd3rd.. From a fast glance GWAN "embeds" application (like apache module) and that how it gets the "performance" So (a) I don't think that CppCMS can be integrated into GWAN unless standard protocol is supported by GWAN (fastcgi/scgi)(b) I don't think that it would give any advantage over lets say lighttpd or nginx when using protocil(c) Why to use closed source proprietary web server? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Alexey Omelchenko <aom...@gm...> To: cppcms-users <cpp...@li...> Sent: Tuesday, March 3, 2015 1:54 AM Subject: [Cppcms-users] G-WAN integration experience Hello community, G-WAN shows outstanding performance on benchmarks. Does anybody here has real life experience integrating G-WAN with CPPCMS? Thanks, Alexey. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Tolga H. <fas...@gm...> - 2015-03-03 01:03:52
|
And impossible to debug and fix as its proprietary. On Tue, Mar 3, 2015, 03:02 Tolga HOŞGÖR <fas...@gm...> wrote: > Last time I checked (over a year ago) gwan was segfaulting on its own > examples with a simple apache bench stress test FYI. > > On Tue, Mar 3, 2015, 01:55 Alexey Omelchenko <aom...@gm...> wrote: > >> Hello community, >> >> G-WAN shows outstanding performance on benchmarks. >> Does anybody here has real life experience integrating G-WAN with CPPCMS? >> >> Thanks, >> Alexey. >> ------------------------------------------------------------ >> ------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > |
From: Tolga H. <fas...@gm...> - 2015-03-03 01:03:07
|
Last time I checked (over a year ago) gwan was segfaulting on its own examples with a simple apache bench stress test FYI. On Tue, Mar 3, 2015, 01:55 Alexey Omelchenko <aom...@gm...> wrote: > Hello community, > > G-WAN shows outstanding performance on benchmarks. > Does anybody here has real life experience integrating G-WAN with CPPCMS? > > Thanks, > Alexey. > ------------------------------------------------------------ > ------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Alexey O. <aom...@gm...> - 2015-03-02 23:54:51
|
Hello community, G-WAN shows outstanding performance on benchmarks. Does anybody here has real life experience integrating G-WAN with CPPCMS? Thanks, Alexey. |
From: augustin <aug...@ov...> - 2015-02-20 12:32:37
|
On Friday, February 20, 2015 07:36:48 PM augustin wrote: > boost::ptr_list<categories_form> > categories_form inherits from cppcms::form. > void boost::checked_delete(const categories_form*) > void booster::checked_delete(const categories_form*) Well, now I know it's cause by the C++ language feature called Argument Dependent Lookup (ADL), which I previously didn't know about. Now I know what causes the bug, but I still don't know how to 'fix' it, or work my way around it. Can I configure cmake to let it now not to look into the booster headers? Any other way to deal with such situations? Back to the drawing board, rethinking my class layout... augustin !++ |
From: augustin <aug...@ov...> - 2015-02-20 11:37:01
|
Hello, I am trying to use boost, but booster is wrecking havock. I have this boost ptr list: boost::ptr_list<categories_form> categories_form inherits from cppcms::form. When I compile, I get the error: /usr/include/boost/ptr_container/clone_allocator.hpp:56:9: error: call of overloaded 'checked_delete(const categories_form*&)' is ambiguous Candidates are: /usr/include/boost/checked_delete.hpp:29:31: void boost::checked_delete(const categories_form*) and: /usr/local/include/booster/checked_delete.h:25:31: void booster::checked_delete(const categories_form*) Note the include files. The only difference is boost vs booster: boost::checked_delete(...) booster::checked_delete(...) Now, I had to install booster to install cppcms. Also, booster does not implement ptr_list: $ locate ptr_list.hpp /usr/include/boost/ptr_container/ptr_list.hpp /usr/include/boost/ptr_container/serialize_ptr_list.hpp /usr/include/boost/spirit/home/support/detail/lexer/containers/ptr_list.hpp I wonder why the compiler is looking into the booster:: namespace. How do I configure cmake or whatever to prevent confusing the compiler? thanks augustin ?++ |
From: augustin <aug...@ov...> - 2015-02-13 12:25:39
|
On Sunday, September 11, 2011 08:37:10 PM 陈抒 wrote: > To get the correct Chinese words from MySQL via CppDB,make sure you add > ";set_charset_name=utf8" into connection string.There is one example below: > #include <string> > #include <iostream> > using namespace std; > #include <cppdb/frontend.h> > > int main(int argc,char* argv[]){ > locale new_locale(locale("zh_CN.utf8")); > locale old_loc = locale::global(new_locale); > try{ > string > connection_string("mysql:host=192.168.1.15;database=d01;user=data;password= > skst;set_charset_name=utf8"); cppdb::session session(connection_string); > string sql="select address from tape_local limit 0,1"; > cppdb::result res = session<<sql; > while(res.next()){ > cout<<res.get<string>("address")<<endl; > } > }catch(std::exception const& ex){ > cout<<ex.what()<<endl; > }catch(...){ > cout<<"Unknown exception"<<endl; > } > } > > I also wrote one document in Chinese here: > http://blog.csdn.net/sheismylife/article/details/6767770 謝謝陈抒, 太感謝你. I struggled with that for a long time. Thank you for sharing the solution. Artyom: I had previously checked the documentation here: http://cppcms.com/sql/cppdb/connstr.html However, there are some parts that I hadn't understood, and there are some parts that are not documented. I am willing to prepare a patch to improve the documentation. However, there are some parts that I still don't know or understand. Can we work together to improve the official documentation? [Note, as previously mentioned, I cannot login at sourceforge. It won't allow me]. set_charset_name is a cppdb construct. It is not found in the MySQL official documentation, although MYSQL_SET_CHARSET_NAME is. Should we document within cppdb itself all the mysql configuration options? Or should we link to the mysql official documentation and let users know where to check to see which options are available? Also, I checked the other backends (postgres, etc.), and didn't find any comparable support for connection string options. Don't other backends support such options? yours, augustin. 新年快樂 . |
From: augustin <aug...@ov...> - 2015-02-13 12:21:59
|
On Sunday, September 11, 2011 08:37:10 PM 陈抒 wrote: > string > connection_string("mysql:host=192.168.1.15;database=d01;user=data;password > =skst;set_charset_name=utf8"); cppdb::session session(connection_string); Meanwhile, I documented this in the wiki. The solution previously offered there was not accurate. http://cppcms.com/wikipp/en/page/cppcms_1x_encoding_and_utf8 augustin. |
From: Artyom B. <art...@ya...> - 2015-02-05 07:38:26
|
See it really depends on the workload. The asynchronous applications are mostly required for server-side push - i.e. push data from server to client when some event occurs. It looks like it isn't the case. So simplest is just to work with synchronous access and use thread pool - the ordinary approach. To answer this question in more accurate way - describe what exactly you try to do. About Linicom. Most of requests (that are highest load) are served from the data stored in memory + cache - i.e. some of postgresql datais "mirrored" to in memory data structures for efficient use. Some served from DB. It really depends on frequency of access to specific features. It really depends on what and how you do. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Василий Теркин <par...@gm...> To: cpp...@li... Sent: Wednesday, February 4, 2015 3:54 PM Subject: [Cppcms-users] https request Hello everybody.I want to implement OAuth2 in my first pet web project (i have very superficial knowledge of network/multithreded/event-driven programming).Could you please describe me the best approach to handle a huge amount of requests to perform https requests?Should i use synchronous application (sync curl? or i mised something inside cppcms..) and rely on cppcms::applications_pool, which will take care of everything (?), or make asynchronous application and dig into some kind of libcurl-multi (and invent wheel with requests pool, communicating with cppcms, may be dealing with several event loops or anything else).2Artyom: Artyom, may you describe the Linicom project's internals (talking about cppcms)? In my case most of user requsts will retrieve data from postgresql server. I would appreciate for any advice.And thanks for the project! Andrey L. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@ya...> - 2015-02-05 07:28:50
|
I just use vim with HTML syntax... works fine - if someone develops share it :-) Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Дмитрий Востриков <ds...@gm...> To: cpp...@li... Sent: Saturday, January 31, 2015 2:23 PM Subject: [Cppcms-users] Vim plugin Hi all, just a question, is it exist appropriate vim plugin that support CppCMS template syntax with highlighting and some autocompletion?As i know (from some topic on stackoverflow), CppCMS itself written with vim. May be Artyom has it? Please...ThanxDmitriy Vostrikov ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Василий Т. <par...@gm...> - 2015-02-04 13:54:57
|
Hello everybody. I want to implement OAuth2 in my first pet web project (i have very superficial knowledge of network/multithreded/event-driven programming). Could you please describe me the best approach to handle a huge amount of requests to perform https requests? Should i use synchronous application (sync curl? or i mised something inside cppcms..) and rely on cppcms::applications_pool, which will take care of everything (?), or make asynchronous application and dig into some kind of libcurl-multi (and invent wheel with requests pool, communicating with cppcms, may be dealing with several event loops or anything else). 2Artyom: Artyom, may you describe the Linicom <http://linicom.co.il/> project's internals (talking about cppcms)? In my case most of user requsts will retrieve data from postgresql server. I would appreciate for any advice. And thanks for the project! Andrey L. |