|
|
|
@ -743,20 +743,16 @@ namespace WebSocketSharp.Net
|
|
|
|
/// <exception cref="ArgumentNullException">
|
|
|
|
/// <exception cref="ArgumentNullException">
|
|
|
|
/// <paramref name="responseEntity"/> is <see langword="null"/>.
|
|
|
|
/// <paramref name="responseEntity"/> is <see langword="null"/>.
|
|
|
|
/// </exception>
|
|
|
|
/// </exception>
|
|
|
|
/// <exception cref="InvalidOperationException">
|
|
|
|
|
|
|
|
/// The response has already been sent.
|
|
|
|
|
|
|
|
/// </exception>
|
|
|
|
|
|
|
|
/// <exception cref="ObjectDisposedException">
|
|
|
|
/// <exception cref="ObjectDisposedException">
|
|
|
|
/// This object is closed.
|
|
|
|
/// This object is closed.
|
|
|
|
/// </exception>
|
|
|
|
/// </exception>
|
|
|
|
public void Close (byte[] responseEntity, bool willBlock)
|
|
|
|
public void Close (byte[] responseEntity, bool willBlock)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
checkDisposed ();
|
|
|
|
if (responseEntity == null)
|
|
|
|
if (responseEntity == null)
|
|
|
|
throw new ArgumentNullException ("responseEntity");
|
|
|
|
throw new ArgumentNullException ("responseEntity");
|
|
|
|
|
|
|
|
|
|
|
|
var len = responseEntity.Length;
|
|
|
|
var len = responseEntity.Length;
|
|
|
|
ContentLength64 = len;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var output = OutputStream;
|
|
|
|
var output = OutputStream;
|
|
|
|
if (willBlock) {
|
|
|
|
if (willBlock) {
|
|
|
|
output.Write (responseEntity, 0, len);
|
|
|
|
output.Write (responseEntity, 0, len);
|
|
|
|
|