mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
On posix systems, set SO_REUSEADDR
This commit is contained in:
@@ -226,6 +226,9 @@ Socket *CreateServerSocket(const char *bindaddr, uint16_t port, int queuesize)
|
||||
{
|
||||
int s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
||||
|
||||
int yes = 1;
|
||||
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes));
|
||||
|
||||
if(s == -1)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user