9
Düğümdeki bir http.request () için zaman aşımı nasıl ayarlanır?
Şanssız http.request kullanan bir HTTP istemcisinde bir zaman aşımı ayarlamaya çalışıyorum. Şimdiye kadar yaptığım şey şuydu: var options = { ... } var req = http.request(options, function(res) { // Usual stuff: on(data), on(end), chunks, etc... } /* This does not work TOO MUCH... sometimes the socket is not ready (undefined) …