| 3845 | } |
| 3846 | |
| 3847 | const char *getClientTypeName(int clientType) { |
| 3848 | switch(clientType) { |
| 3849 | case CLIENT_TYPE_NORMAL: return "normal"; |
| 3850 | case CLIENT_TYPE_SLAVE: return "slave"; |
| 3851 | case CLIENT_TYPE_PUBSUB: return "pubsub"; |
| 3852 | case CLIENT_TYPE_MASTER: return "master"; |
| 3853 | default: return NULL; |
| 3854 | } |
| 3855 | } |
| 3856 | |
| 3857 | /* The function checks if the client reached output buffer soft or hard |
| 3858 | * limit, and also update the state needed to check the soft limit as |
no outgoing calls
no test coverage detected