fujuntang
2021-12-09 73689afc09ce346f9eb00e02faf7f242e55dc7ee
src/socket/shm_mod_socket.cpp
@@ -301,6 +301,7 @@
int  ShmModSocket::pub(const char *topic, int topic_size, const void *content, int content_size, int key, const struct timespec *timeout, int flags) {
   int ret;
   bus_head_t head = {};
    topic = trim(const_cast<char *>(topic), 0);
   memcpy(head.action, "pub", sizeof(head.action));
   head.topic_size = topic_size = strlen(topic) + 1;
   head.content_size = content_size;