Issue #4747 - Default close status code should be normal status
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
9b57fcd8ee
commit
664cb81e6d
|
@ -179,7 +179,7 @@ public class JavaxWebSocketSession implements javax.websocket.Session
|
||||||
@Override
|
@Override
|
||||||
public void close()
|
public void close()
|
||||||
{
|
{
|
||||||
close(new CloseReason(CloseReason.CloseCodes.NO_STATUS_CODE, null));
|
close(new CloseReason(CloseReason.CloseCodes.NORMAL_CLOSURE, null));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -146,7 +146,7 @@ public class JettySpecificConfigTest
|
||||||
// Close the Session.
|
// Close the Session.
|
||||||
session.close();
|
session.close();
|
||||||
assertTrue(clientEndpoint.closeLatch.await(5, TimeUnit.SECONDS));
|
assertTrue(clientEndpoint.closeLatch.await(5, TimeUnit.SECONDS));
|
||||||
assertThat(clientEndpoint.closeReason.getCloseCode(), is(CloseReason.CloseCodes.NO_STATUS_CODE));
|
assertThat(clientEndpoint.closeReason.getCloseCode(), is(CloseReason.CloseCodes.NORMAL_CLOSURE));
|
||||||
assertNull(clientEndpoint.error);
|
assertNull(clientEndpoint.error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue