Multiple processes, same port number
B1ackDrag0n opened this issue · 1 comments
B1ackDrag0n commented
Good morning.
Is it possible for multiple CppCMS processes, on a Linux machine, to share a port number, as discussed in this article?
https://lwn.net/Articles/542629/, using "SO_REUSEPORT".
From the article:
int sfd = socket(domain, socktype, 0);
int optval = 1;
setsockopt(sfd, SOL_SOCKET, SO_REUSEPORT, &optval, sizeof(optval));
bind(sfd, (struct sockaddr *) &addr, addrlen);
Werner
artyom-beilis commented
No. This option isn't implemented but looks interesting indeed