MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / updateTLSPortThread

Function updateTLSPortThread

src/config.cpp:2762–2770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2760}
2761
2762static int updateTLSPortThread(long long val, bool fFirstCall, const char **err)
2763{
2764 if (changeListenPort(val, &serverTL->tlsfd, acceptTLSHandler, fFirstCall) == C_ERR) {
2765 *err = "Unable to listen on this port. Check server logs.";
2766 return 0;
2767 }
2768
2769 return 1;
2770}
2771
2772static int updateTLSPort(long long val, long long prev, const char **err) {
2773 /* Do nothing if port is unchanged */

Callers 1

updateTLSPortFunction · 0.85

Calls 1

changeListenPortFunction · 0.85

Tested by

no test coverage detected