summaryrefslogtreecommitdiff
path: root/src/networking.c
diff options
context:
space:
mode:
authorguiquanz <nantangguyun@gmail.com>2013-01-17 01:00:20 +0800
committerantirez <antirez@gmail.com>2013-01-19 10:59:44 +0100
commit9d09ce3981deb58282ae47c87e1080936f04991f (patch)
treefe509226486b33679d202c457b50c2ac99621a9d /src/networking.c
parent61dfc2e5217361b21258ae0cc408e9b719c8565e (diff)
downloadredis-9d09ce3981deb58282ae47c87e1080936f04991f.tar.gz
Fixed many typos.
Diffstat (limited to 'src/networking.c')
-rw-r--r--src/networking.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/networking.c b/src/networking.c
index d1a8d3b3f..f48d27c07 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -378,7 +378,7 @@ void *addDeferredMultiBulkLength(redisClient *c) {
return listLast(c->reply);
}
-/* Populate the length object and try glueing it to the next chunk. */
+/* Populate the length object and try gluing it to the next chunk. */
void setDeferredMultiBulkLength(redisClient *c, void *node, long length) {
listNode *ln = (listNode*)node;
robj *len, *next;
@@ -404,7 +404,7 @@ void setDeferredMultiBulkLength(redisClient *c, void *node, long length) {
asyncCloseClientOnOutputBufferLimitReached(c);
}
-/* Add a duble as a bulk reply */
+/* Add a double as a bulk reply */
void addReplyDouble(redisClient *c, double d) {
char dbuf[128], sbuf[128];
int dlen, slen;
@@ -526,7 +526,7 @@ static void acceptCommonHandler(int fd, int flags) {
}
/* If maxclient directive is set and this is one client more... close the
* connection. Note that we create the client instead to check before
- * for this condition, since now the socket is already set in nonblocking
+ * for this condition, since now the socket is already set in non-blocking
* mode and we can send an error for free using the Kernel I/O */
if (listLength(server.clients) > server.maxclients) {
char *err = "-ERR max number of clients reached\r\n";
@@ -941,7 +941,7 @@ int processMultibulkBuffer(redisClient *c) {
/* Not enough data (+2 == trailing \r\n) */
break;
} else {
- /* Optimization: if the buffer contanins JUST our bulk element
+ /* Optimization: if the buffer containns JUST our bulk element
* instead of creating a new object by *copying* the sds we
* just use the current sds string. */
if (pos == 0 &&