diff --git a/src/ulib/net/client/redis.cpp b/src/ulib/net/client/redis.cpp index aaa15bf5..7494a4f4 100644 --- a/src/ulib/net/client/redis.cpp +++ b/src/ulib/net/client/redis.cpp @@ -686,6 +686,10 @@ bool UREDISClusterMaster::connect(const char* host, unsigned int _port) { calculateNodeMap(); + subscriptionClient->UEventFd::fd = subscriptionClient->getFd(); + subscriptionClient->UEventFd::op_mask |= EPOLLET; + subscriptionClient->UEventFd::op_mask &= ~EPOLLRDHUP; + UServer_Base::addHandlerEvent(subscriptionClient); // NB: we ask to listen for events to a Redis publish channel... U_RETURN(true); @@ -714,11 +718,6 @@ bool UREDISClusterMaster::clusterSubscribe(const UString& channel, vPFcscs callb if (subscriptionClient->processRequest(U_RC_MULTIBULK, U_CONSTANT_TO_PARAM("SUBSCRIBE"), U_STRING_TO_PARAM(channel))) { - if (subscriptionClient->UREDISClient_Base::pchannelCallbackMap == U_NULLPTR) - { - U_NEW(UHashMap, subscriptionClient->UREDISClient_Base::pchannelCallbackMap, UHashMap); - } - subscriptionClient->UREDISClient_Base::pchannelCallbackMap->insert(channel, (const void*)callback); U_RETURN(true); diff --git a/tests/ulib/README b/tests/ulib/README index e69de29b..d88458d8 100644 --- a/tests/ulib/README +++ b/tests/ulib/README @@ -0,0 +1,28 @@ +See http://www.debian.org/ for information about Debian GNU/Linux. +Four Debian releases are available on the main site: + +Debian 8.11, or jessie. Access this release through dists/oldoldstable +Debian 8.11 was released Saturday, 23rd June 2018. + +Debian 9.11, or stretch. Access this release through dists/oldstable +Debian 9.11 was released Sunday, 8th September 2019. + +Debian 10.1, or buster. Access this release through dists/stable +Debian 10.1 was released Saturday, 7th September 2019. + +Testing, or bullseye. Access this release through dists/testing. The +current tested development snapshot is named bullseye. Packages which +have been tested in unstable and passed automated tests propagate to +this release. + +Unstable, or sid. Access this release through dists/unstable. The +current development snapshot is named sid. Untested candidate +packages for future releases. + +Older releases of Debian are at http://archive.debian.org/debian-archive + +--- Other directories: +doc Debian documentation. +indices Various indices of the site. +project Experimental packages and other miscellaneous files. +tools Tools for creating boot disks and booting Linux.