History log of /redis-3.2.3/src/networking.c (Results 1 – 25 of 249)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: 8.0-m02, 6.2.16, 7.2.6, 7.4.1, 8.0-m01, 7.4.0, 7.4-rc2, 7.4-rc1, 7.2.5, 7.2.4, 7.0.15, 7.2.3, 7.2.2, 7.0.14, 6.2.14, 6.2.15, 7.2.1, 7.0.13, 7.2.0, 7.2-rc3, 7.0.12, 6.2.13, 6.0.20, 7.2-rc2, 6.0.19, 6.2.12, 7.0.11, 7.2-rc1, 7.0.10, 7.0.9, 6.2.11, 6.0.18, 6.2.10, 6.0.17, 6.2.9, 7.0.8, 7.0.7, 7.0.6, 6.2.8, 7.0.5, 7.0.4, 7.0.3, 7.0.2, 7.0.1, 7.0.0, 6.2.7, 7.0-rc3, 7.0-rc2, 7.0-rc1, 6.2.6, 6.0.16, 5.0.14, 5.0.13, 6.0.15, 6.2.5, 6.0.14, 6.2.4, 6.2.3, 6.0.13, 6.2.2, 6.2.1, 6.0.12, 5.0.12, 6.0.11, 6.2.0, 5.0.11, 6.2-rc3, 6.0.10, 6.2-rc2, 6.2-rc1, 6.0.9, 5.0.10, 6.0.8, 6.0.7, 6.0.6, 6.0.5, 6.0.4, 6.0.3, 6.0.2, 6.0.1, 6.0.0, 5.0.9, 6.0-rc4, 6.0-rc3, 5.0.8, 6.0-rc2, 6.0-rc1, 5.0.7, 5.0.6, 5.0.5, 3.2.13, 4.0.14, 5.0.4, 4.0.13, 5.0.3, 4.0.12, 5.0.2, 5.0.1, 5.0.0, 5.0-rc6, 5.0-rc5, 4.0.11, 5.0-rc4, 5.0-rc3, 5.0-rc2, 4.0.10, 3.2.12, 5.0-rc1, 4.0.9, 4.0.8, 4.0.7, 4.0.6, 4.0.5, 4.0.4, 4.0.3, 3.2.11, 4.0.2, 3.2.10, 4.0.1, 4.0.0, 3.2.9, 4.0-rc3, 3.2.8, 3.2.7, 3.2.6, 4.0-rc2, 4.0-rc1, 3.2.5, 3.2.4, 3.2.3, 3.2.2
# 0a45fbc3 27-Jul-2016 antirez <[email protected]>

Ability of slave to announce arbitrary ip/port to master.

This feature is useful, especially in deployments using Sentinel in
order to setup Redis HA, where the slave is executed with NAT or port
fo

Ability of slave to announce arbitrary ip/port to master.

This feature is useful, especially in deployments using Sentinel in
order to setup Redis HA, where the slave is executed with NAT or port
forwarding, so that the auto-detected port/ip addresses, as listed in
the "INFO replication" output of the master, or as provided by the
"ROLE" command, don't match the real addresses at which the slave is
reachable for connections.

show more ...


Revision tags: 3.2.1
# 047ced44 23-May-2016 oranagra <[email protected]>

CLIENT error message was out of date


Revision tags: 3.2.0
# be5c0869 25-Apr-2016 Oran Agra <[email protected]>

networking.c minor optimization


# 9d57ceec 25-Apr-2016 Oran Agra <[email protected]>

additional fix to issue #2948


# 79e553a5 18-Feb-2016 antirez <[email protected]>

addReplyHumanLongDouble() API added.

Send a long double or double as a bulk reply, in a human friendly
format.


Revision tags: 3.2.0-rc3, 3.0.7, 3.2.0-rc2
# 27be786c 20-Jan-2016 Itamar Haber <[email protected]>

Removes an extra space in protected mode message


# d256abe9 07-Jan-2016 antirez <[email protected]>

Another typo in protected mode error message.


# 06846152 07-Jan-2016 antirez <[email protected]>

Fix protected mode error message typo.


# 273c49e7 07-Jan-2016 antirez <[email protected]>

New security feature: Redis protected mode.

An exposed Redis instance on the internet can be cause of serious
issues. Since Redis, by default, binds to all the interfaces, it is easy
to forget an in

New security feature: Redis protected mode.

An exposed Redis instance on the internet can be cause of serious
issues. Since Redis, by default, binds to all the interfaces, it is easy
to forget an instance without any protection layer, for error.

Protected mode try to address this feature in a soft way, providing a
layer of protection, but giving clues to Redis users about why the
server is not accepting connections.

When protected mode is enabeld (the default), and if there are no
minumum hints about the fact the server is properly configured (no
"bind" directive is used in order to restrict the server to certain
interfaces, nor a password is set), clients connecting from external
intefaces are refused with an error explaining what to do in order to
fix the issue.

Clients connecting from the IPv4 and IPv6 lookback interfaces are still
accepted normally, similarly Unix domain socket connections are not
restricted in any way.

show more ...


Revision tags: 3.2-rc1, 3.0.6, 2.8.24
# 57f079a2 27-Nov-2015 antirez <[email protected]>

Fix typo in prepareClientToWrite() comment.


# 2b74b985 11-Dec-2015 antirez <[email protected]>

MIGRATE: fix replies processing and argument rewriting.

We need to process replies after errors in order to delete keys
successfully transferred. Also argument rewriting was fixed since
it was broke

MIGRATE: fix replies processing and argument rewriting.

We need to process replies after errors in order to delete keys
successfully transferred. Also argument rewriting was fixed since
it was broken in several ways. Now a fresh argument vector is created
and set if we are acknowledged of at least one key.

show more ...


# d5e32fb1 11-Dec-2015 antirez <[email protected]>

Pipelined multiple keys MIGRATE.


# 45b03dda 09-Dec-2015 antirez <[email protected]>

unlinkClient(): clear flags according to ops performed.


# f069589e 09-Nov-2015 antirez <[email protected]>

Best effort flush of slave buffers before SHUTDOWN.


# a26d5ca4 09-Nov-2015 antirez <[email protected]>

Use clientHasPendingReplies() in flushSlavesOutputBuffers()

The old version only flushed data to slaves if there were strings
pending in the client->reply list. Now also static buffers are flushed.

Use clientHasPendingReplies() in flushSlavesOutputBuffers()

The old version only flushed data to slaves if there were strings
pending in the client->reply list. Now also static buffers are flushed.
Does not help to free memory (which is the only use we have right now in
the fuction), but is more correct conceptually, and may be used in
other contexts.

show more ...


# de4d6caf 21-Oct-2015 antirez <[email protected]>

CLIENT REPLY command implemented: ON, OFF and SKIP modes.

Sometimes it can be useful for clients to completely disable replies
from the Redis server. For example when the client sends fire and forge

CLIENT REPLY command implemented: ON, OFF and SKIP modes.

Sometimes it can be useful for clients to completely disable replies
from the Redis server. For example when the client sends fire and forget
commands or performs a mass loading of data, or in caching contexts
where new data is streamed constantly. In such contexts to use server
time and bandwidth in order to send back replies to clients, which are
going to be ignored, is a shame.

Multiple mechanisms are possible to implement such a feature. For
example it could be a feature of MULTI/EXEC, or a command prefix
such as "NOREPLY SADD myset foo", or a different mechanism that allows
to switch on/off requests using the CLIENT command.

The MULTI/EXEC approach has the problem that transactions are not
strictly part of the no-reply semantics, and if we want to insert a lot
of data in a bulk way, creating a huge MULTI/EXEC transaction in the
server memory is bad.

The prefix is the best in this specific use case since it does not allow
desynchronizations, and is pretty clear semantically. However Redis
internals and client libraries are not prepared to handle this
currently.

So the implementation uses the CLIENT command, providing a new REPLY
subcommand with three options:

CLIENT REPLY OFF disables the replies, and does not reply itself.
CLIENT REPLY ON re-enables the replies, replying +OK.
CLIENT REPLY SKIP only discards the reply of the next command, and
like OFF does not reply anything itself.

The reason to add the SKIP command is that it allows to have an easy
way to send conceptually "single" commands that don't need a reply
as the sum of two pipelined commands:

CLIENT REPLY SKIP
SET key value

Note that CLIENT REPLY ON replies with +OK so it should be used when
sending multiple commands that don't need a reply. However since it
replies with +OK the client can check that the connection is still
active and all the previous commands were received.

This is currently just into Redis "unstable" so the proposal can be
modified or abandoned based on users inputs.

show more ...


Revision tags: 3.0.5, 2.8.23
# ded5a248 30-Sep-2015 antirez <[email protected]>

Call writeToClient() directly instead of the write handler.


# 9fe23e8f 30-Sep-2015 antirez <[email protected]>

Fix processEventsWhileBlocked() to handle PENDING_WRITE clients.

After the introduction of the list with clients with pending writes, to
process clients incrementally outside of the event loop we al

Fix processEventsWhileBlocked() to handle PENDING_WRITE clients.

After the introduction of the list with clients with pending writes, to
process clients incrementally outside of the event loop we also need to
process the pending writes list.

show more ...


# 47e6cf11 30-Sep-2015 antirez <[email protected]>

Refactoring: unlinkClient() added to lower freeClient() complexity.


# 2d21af45 30-Sep-2015 antirez <[email protected]>

Refactoring: new function to test if client has pending output.


# 1c512e49 28-Sep-2015 antirez <[email protected]>

Reverse list of clients with pending writes.

May potentially improve locality... not exactly clear if this makes a
difference or not. But for sure is harmless.


# 849aa99c 28-Sep-2015 antirez <[email protected]>

writeToClient(): don't remove write handler if not needed.


# 37e8b6fc 28-Sep-2015 antirez <[email protected]>

handleClientsWithPendingWrites(): detect dead clients.


# 838833cd 28-Sep-2015 antirez <[email protected]>

Move handleClientsWithPendingWrites() in networking.c.


# 23e7710c 28-Sep-2015 antirez <[email protected]>

Avoid installing the client write handler when possible.


12345678910