mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
zmq ZMQ_IPV6 option set
This commit is contained in:
parent
c8734eb5d5
commit
4ef05e91bb
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ var log = require('./logger').createLogger('util:zmqutil')
|
|||
module.exports.socket = function() {
|
||||
var sock = zmq.socket.apply(zmq, arguments)
|
||||
|
||||
;['ZMQ_TCP_KEEPALIVE', 'ZMQ_TCP_KEEPALIVE_IDLE'].forEach(function(opt) {
|
||||
;['ZMQ_TCP_KEEPALIVE', 'ZMQ_TCP_KEEPALIVE_IDLE', 'ZMQ_IPV6'].forEach(function(opt) {
|
||||
if (process.env[opt]) {
|
||||
try {
|
||||
sock.setsockopt(zmq[opt], Number(process.env[opt]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue