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

Function __redisReaderSetErrorProtocolByte

deps/hiredis/read.c:101–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101static void __redisReaderSetErrorProtocolByte(redisReader *r, char byte) {
102 char cbuf[8], sbuf[128];
103
104 chrtos(cbuf,sizeof(cbuf),byte);
105 snprintf(sbuf,sizeof(sbuf),
106 "Protocol error, got %s as reply type byte", cbuf);
107 __redisReaderSetError(r,REDIS_ERR_PROTOCOL,sbuf);
108}
109
110static void __redisReaderSetErrorOOM(redisReader *r) {
111 __redisReaderSetError(r,REDIS_ERR_OOM,"Out of memory");

Callers 1

processItemFunction · 0.85

Calls 2

chrtosFunction · 0.85
__redisReaderSetErrorFunction · 0.85

Tested by

no test coverage detected