Add highwater mark for client zmq to lower level
This commit is contained in:
parent
2acfb1c321
commit
019479d916
1 changed files with 46 additions and 45 deletions
|
@ -159,8 +159,8 @@ class VoiceServer(object):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if self.hugvey.cmd_server.muteMic:
|
if self.hugvey.cmd_server.muteMic:
|
||||||
logger.log(LOG_BS, 'block recording {}' .format(
|
# logger.log(LOG_BS, 'block recording {}' .format(
|
||||||
self.hugvey.cmd_server.muteMic))
|
# self.hugvey.cmd_server.muteMic))
|
||||||
|
|
||||||
# multiply by 0 to disable audio recording while playback
|
# multiply by 0 to disable audio recording while playback
|
||||||
f = audioop.mul(f, 2, 0)
|
f = audioop.mul(f, 2, 0)
|
||||||
|
@ -214,6 +214,7 @@ class VoiceServer(object):
|
||||||
try:
|
try:
|
||||||
address = "tcp://*:{}".format(self.config['voice']['port'] + self.hugvey.id)
|
address = "tcp://*:{}".format(self.config['voice']['port'] + self.hugvey.id)
|
||||||
self.voice_socket = self.ctx.socket(zmq.PUB)
|
self.voice_socket = self.ctx.socket(zmq.PUB)
|
||||||
|
self.voice_socket.set_hwm(100)
|
||||||
self.voice_socket.bind(address)
|
self.voice_socket.bind(address)
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
Loading…
Reference in a new issue