Home
last modified time | relevance | path

Searched refs:reason (Results 1 – 17 of 17) sorted by last modified time

/unit/src/
H A Dnxt_openssl.c455 long reason; local
489 reason = ERR_GET_REASON(ERR_peek_last_error());
490 if (reason != PEM_R_NO_START_LINE) {
H A Dnxt_cert.c101 long length, reason; in nxt_cert_bio() local
123 reason = ERR_GET_REASON(ERR_peek_last_error()); in nxt_cert_bio()
124 if (reason != PEM_R_NO_START_LINE) { in nxt_cert_bio()
/unit/test/unit/applications/
H A Dwebsockets.py68 def serialize_close(self, code=1000, reason=''): argument
69 return struct.pack('!H', code) + reason.encode('utf-8')
124 reason = data[2:].decode('utf-8')
128 frame['reason'] = reason
/unit/test/
H A Dtest_tls_tickets.py80 reason='ticket check is not supported',
105 reason='ticket check is not supported',
141 reason='ticket check is not supported',
H A Dtest_java_websockets.py1153 payload = self.ws.serialize_close(reason='Hello World!')
1162 payload = self.ws.serialize_close(reason='*' * 123)
1171 payload = self.ws.serialize_close(reason='*' * 124)
H A Dtest_node_websockets.py1172 payload = self.ws.serialize_close(reason='Hello World!')
1181 payload = self.ws.serialize_close(reason='*' * 123)
1190 payload = self.ws.serialize_close(reason='*' * 124)
H A Dtest_asgi_websockets.py1226 payload = self.ws.serialize_close(reason='Hello World!')
1235 payload = self.ws.serialize_close(reason='*' * 123)
1244 payload = self.ws.serialize_close(reason='*' * 124)
/unit/auto/os/
H A Dtest79 # for some reason, so use a portable echo.c program built
/unit/src/nodejs/unit-http/
H A Dhttp_server.js171 function writeHead(statusCode, reason, obj) { argument
180 if (typeof reason === 'string') {
181 this.statusMessage = reason;
188 obj = reason;
H A Dwebsocket_request.js448 WebSocketRequest.prototype.reject = function(status, reason, extraHeaders) { argument
464 if (reason) {
465 reason = reason.replace(headerSanitizeRegExp, '');
466 response.addHeader('X-WebSocket-Reject-Reason', reason);
H A Dwebsocket_router_request.js49 WebSocketRouterRequest.prototype.reject = function(status, reason, extraHeaders) { argument
50 this.webSocketRequest.reject(status, reason, extraHeaders);
/unit/src/java/nginx/unit/websocket/
H A DWsFrameBase.java318 String reason = null; in processDataControl() local
343 reason = controlBufferText.toString(); in processDataControl()
346 wsSession.onClose(new CloseReason(Util.getCloseCode(code), reason)); in processDataControl()
H A DWsSession.java637 String reason = closeReason.getReasonPhrase(); in sendCloseMessage() local
638 if (reason != null && reason.length() > 0) { in sendCloseMessage()
639 appendCloseReasonWithTruncation(msg, reason); in sendCloseMessage()
669 protected static void appendCloseReasonWithTruncation(ByteBuffer msg, String reason) { in appendCloseReasonWithTruncation() argument
674 byte[] reasonBytes = reason.getBytes(StandardCharsets.UTF_8); in appendCloseReasonWithTruncation()
683 byte[] bytesNext = reason.substring(pos, pos + 1).getBytes(StandardCharsets.UTF_8); in appendCloseReasonWithTruncation()
688 bytesNext = reason.substring(pos, pos + 1).getBytes(StandardCharsets.UTF_8); in appendCloseReasonWithTruncation()
H A DLocalStrings.properties66 wsFrame.invalidUtf8Close=A WebSocket close frame was received with a close reason that contained in…
99 # Note the following message is used as a close reason in a WebSocket control
121 # Note the following message is used as a close reason in a WebSocket control
/unit/pkg/rpm/rpmbuild/SOURCES/
H A DCOPYRIGHT.unit-jsc-common459 incurred by, or claims asserted against, such Contributor by reason
/unit/pkg/deb/debian.module/
H A Dcopyright.unit-jsc-common459 incurred by, or claims asserted against, such Contributor by reason
/unit/
H A DLICENSE174 incurred by, or claims asserted against, such Contributor by reason