cppcomet / comet-server Goto Github PK
View Code? Open in Web Editor NEWCppComet - easy to use and fast in work.
Home Page: http://comet-server.com/
License: GNU Affero General Public License v3.0
CppComet - easy to use and fast in work.
Home Page: http://comet-server.com/
License: GNU Affero General Public License v3.0
When you restart, the mysql connection should be properly closed, but now it does not close the mysql connection correctly.
Command systemctl stop comet.service does not work on Ubuntu 16
echo 'exit' > /tmp/cpp.comet
in comet-service.sh
does not create a pipe but a simple file. to which the fork child process hangs.
add the option to disable using localstorage.
For simple deploy as non-changeable binary need Debian package instead docker/make.
Improve startup scripts for right installation CppComet after building.
At this time installation not work, and service must be started only from build directory.
incorrect marker value in function track_pipe_users (getTrackPipeUsers)
I did everything as written in the instructions, but got this error.
MySQL 8
Ubuntu 20.04
Error text:
[Tag = dbLink, Level = 500] mysql_real_connect localhost: 3306 user = root
[Tag = dbLink, Level = 200] MySQL connection not established
Got packets out of order
ip = localhost: 3306 user = root password = root db_name = comet_db [errno = 1156]
[Tag = Any, Level = 200] Error: MySQL connection not established (attempt = 4)
Query DELETE FROM 'users messages' WHERE 'id'=2
can delete all records from user history. But will be useful delete only part of messages queue
add functions for aggregating statistics of using servers
more info on page http://statistics.comet-server.ru/api/statistics
When we application with PostgreSQL is not so good use another DB engine like MySQL for other services.
Ошибка "tabSignal.connect is not a function" выходит только на Опере (хотя может и еще где), в Хроме и Фаере ее нету.
Анализ показал что tabSignal.connect undefined для Оперы
yacc: e - line 112 of "src/CometQL.y", syntax error
%lex-param { void* qInfo }
Answer to web_pipe_send function comes to all tabs in browser
При обновлении slave вкладки на master вкладке выходит ошибка
CometServerApi.js:824 Invalid pipe name subscription web_chat_pipe chatControl
Я так понял что слейв говорит мастеру на что ему нужно подписаться.
Добавил в _cometServerApi.prototype.subscription
console.log('subscription: ', name);
и увидел следующую картину:
при инициализации мастера:
subscription: web_chat_pipe.msg
subscription: answer_to_web_chat_pipe
subscription: chatControl.clean
а после обновления слейва в мастере вот это:
subscription: subscription
web_chat_pipe
chatControl
Invalid pipe name subscription
web_chat_pipe
chatControl
видимо слейв отдает мастеру все подписки одним текстом да еще и в урезанном виде.
root@v42471: /comet-server# make
[ 2%] Building CXX object CMakeFiles/cppcomet.dir/src/main.cpp.o
In file included from /root/comet-server/dependencies/jwt-cpp/src/include/jwt/claimvalidator.h:26:0,
from /root/comet-server/dependencies/jwt-cpp/src/include/jwt/jwt.h:31,
from /root/comet-server/dependencies/jwt-cpp/src/include/jwt/jwt_all.h:26,
from /root/comet-server/src/internalApi.h:20,
from /root/comet-server/src/user_index.h:27,
from /root/comet-server/src/devManager.h:11,
from /root/comet-server/src/main.cpp:17:
/root/comet-server/dependencies/jwt-cpp/src/include/jwt/json.hpp: In function ‘bool nlohmann::operator<(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference)’:
/root/comet-server/dependencies/jwt-cpp/src/include/jwt/json.hpp:5704:50: error: wrong number of template arguments (1, should be 2)
return *lhs.m_value.array < *rhs.m_value.array;
^~~~~
In file included from /usr/include/c++/7/tuple:39:0,
from /usr/include/c++/7/bits/stl_map.h:63,
from /usr/include/c++/7/map:61,
from /root/comet-server/src/TagTimer.h:8,
from /root/comet-server/src/main.h:131,
from /root/comet-server/src/main.cpp:14:
/usr/include/c++/7/array:94:12: note: provided for ‘template<class _Tp, long unsigned int _Nm> struct std::array’
struct array
^~~~~
CMakeFiles/cppcomet.dir/build.make:158: recipe for target 'CMakeFiles/cppcomet.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/cppcomet.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/cppcomet.dir/all' failed
make[1]: *** [CMakeFiles/cppcomet.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
In this issue, i will be adding message about a process of work under clustering mechanism. If you want to get the email message when clustering will be completed then subscribe to this issue.
The function is active until the master tab is closed. If you close the connection tab, the new connection master will reinstall.
Вопрос в том можно ли запретить (защитить общий канал) от отправки в него сообщений из вне (из JS)
Например я хочу при необходимости вывести у всех пользователей сразу сообщение "Через 15 минут сайт закрывается на техническое обслуживание. Сохраните документы с которыми работаете и выйдите из системы". Но мне нужно гарантировать что никак кроме как из моего PHP (CometQL) подобный сигнал не будет отправлен пользователям.
Сейчас насколько я понял общие каналы (без авторизации) открыты и на чтение и на запись одновременно и при желании какой нибудь хакер может отправить в него чтонибудь свое)
На новой версии CometServerApi.js перестает работать subscription из-за
_cometServerApi.prototype.send_msg("pipe_log\n"+pipe_name+"\n"+marker+"\n");
Судя по коду marker не инициализируется если callBack не задан
возврат к старой версии _cometServerApi.prototype.send_msg("pipe_log\n"+pipe_name+"\n"+_cometServerApi.prototype.custom_id+"\n");
решает проблему
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.