Additional asserts ensuring the client is creating on the correct thread
Former-commit-id: 937702ea1dd0a4331dd7c66ee9f5c2c3f2354d10
This commit is contained in:
parent
72bbf16c2f
commit
f136492c45
@ -99,6 +99,7 @@ client *createClient(int fd, int iel) {
|
|||||||
* in the context of a client. When commands are executed in other
|
* in the context of a client. When commands are executed in other
|
||||||
* contexts (for instance a Lua script) we need a non connected client. */
|
* contexts (for instance a Lua script) we need a non connected client. */
|
||||||
if (fd != -1) {
|
if (fd != -1) {
|
||||||
|
serverAssert(iel == (serverTL - g_pserver->rgthreadvar));
|
||||||
anetNonBlock(NULL,fd);
|
anetNonBlock(NULL,fd);
|
||||||
anetEnableTcpNoDelay(NULL,fd);
|
anetEnableTcpNoDelay(NULL,fd);
|
||||||
if (cserver.tcpkeepalive)
|
if (cserver.tcpkeepalive)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user