90: pin buffer while write is pending, switch to direct byte buffer
Reviewed-by: kinsleyw
This commit is contained in:
parent
49a8bd6b87
commit
20bb10e9fd
@ -76,14 +76,14 @@
|
||||
UDP.prototype.send = function(buffer, offset, length, port, ip) {
|
||||
var wrapper = {_buffer: buffer};
|
||||
this._writeWrappers.push(wrapper);
|
||||
this._udp.send(buffer._impl.array(), offset, length, port, ip);
|
||||
this._udp.send(buffer._impl.underlying(), offset, length, port, ip);
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
UDP.prototype.send6 = function(buffer, offset, length, port, ip) {
|
||||
var wrapper = {_buffer: buffer};
|
||||
this._writeWrappers.push(wrapper);
|
||||
this._udp.send6(buffer._impl.array(), offset, length, port, ip);
|
||||
this._udp.send6(buffer._impl.underlying(), offset, length, port, ip);
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user