wangzhengquan
2020-12-03 f5f063a8d4fdf1e9e967a2206f7cc8de2d549b66
src/socket/net_mod_server_socket.c
@@ -138,8 +138,9 @@
  }
  request_head = NetModSocket::decode_request_head(request_head_bs);
printf("server received request from host = %s:%d, key = %d, timeout=%d,\n",
  request_head.host, request_head.port , request_head.key, request_head.timeout);
// printf("server received request from host = %s:%d, key = %d, timeout=%d,\n",
//   request_head.host, request_head.port , request_head.key, request_head.timeout);
  if(request_head.content_length > max_buf) {
   
@@ -225,7 +226,7 @@
    if (rio_readn(connfd, topic_buf, request_head.topic_length) != request_head.topic_length ) {
      return -1;
    }
LoggerFactory::getLogger()->debug("====server pub %s===\n", buf);
// LoggerFactory::getLogger()->debug("====server pub %s===\n", buf);
    memcpy(response_head.host, request_head.host, NI_MAXHOST);
    response_head.port = request_head.port;
    response_head.key = request_head.key;