MOD aaa-12 优化rpc socket创建路径

SOL  优化rpc socket创建路径
修改人:zhangliang
检视人:zhangliang
This commit is contained in:
zhanglianghy 2019-07-11 11:50:54 +08:00
parent 815e56d529
commit 85aed39296
1 changed files with 5 additions and 1 deletions

View File

@ -161,8 +161,12 @@ boolean rpc_unix_socketc_get(char *host, int port, int*pcfd)
socklen_t cliun_len;
int sockfd;
int len;
char socket_path[32];
char *socket_path = CONFIGM_UNIX_SOCKET;
memset(socket_path, 0, 32);
snprintf(socket_path, 32, "%d.socket", port);
//char *socket_path = CONFIGM_UNIX_SOCKET;
if ((sockfd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
{