This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socket.on('error', function(err) { | |
debug('AGENT SOCKET ERROR: ' + err.message); | |
var req; | |
if (socket._httpMessage) { | |
req = socket._httpMessage; | |
} else if (self.queue.length) { | |
req = self.queue.shift(); | |
assert(req._queue === self.queue); | |
req._queue = null; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
... | |
location /myapp/ { | |
alias /Users/richard/Projects/MyApp/www/; | |
} | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function( options ) { | |
var seneca = this | |
var plugin = 'loadbalance-transport' | |
var so = seneca.options() | |
options = seneca.util.deepextend( | |
{ | |
loadbalance: { | |
workers: [ ... ] |
NewerOlder