Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 65) sorted by path

123

/unit/
H A Dconfigure25 NXT_AUTOCONF_ERR=$NXT_BUILD_DIR/autoconf.err
/unit/go/
H A Dport.go81 c, err := net.FileConn(f)
82 if err != nil {
83 nxt_go_alert("FileConn error %s", err)
158 n, oobn, err := p.snd.WriteMsgUnix(GoBytes(buf, buf_size),
161 if err != nil {
162 nxt_go_warn("write result %d (%d), %s", n, oobn, err)
186 n, oobn, _, _, err := p.rcv.ReadMsgUnix(GoBytes(buf, buf_size),
189 if err != nil {
190 if nerr, ok := err.(*net.OpError); ok {
196 nxt_go_warn("read result %d (%d), %s", n, oobn, err)
H A Drequest.go27 func (r *request) Read(p []byte) (n int, err error) {
41 func new_request(c_req *C.nxt_unit_request_info_t) (r *request, err error) {
46 URL, err := url.ParseRequestURI(uri)
47 if err != nil {
48 return nil, err
114 r, err := new_request(c_req)
116 if err == nil {
H A Dresponse.go28 func (r *response) Write(p []byte) (n int, err error) {
/unit/src/java/nginx/unit/
H A DContext.java1574 System.err.println("loadInitializer: exception caught: " + e.toString());
3172 System.err.println("addServlet: exception caught: " + e.toString());
3191 System.err.println("addServlet: exception caught: " + e.toString());
3210 System.err.println("addServlet: exception caught: " + e.toString());
/unit/src/nodejs/unit-http/
H A Dhttp_server.js306 var err = new Error("Write after end");
308 this.emit('error', err);
311 callback(err);
H A Dunit.cpp60 int rc, err; in process_port_msg() local
69 err = uv_timer_init(poll.loop, &timer); in process_port_msg()
70 if (err < 0) { in process_port_msg()
473 int err; in add_port() local
496 err = uv_poll_init(loop, &data->poll, port->in_fd); in add_port()
497 if (err < 0) { in add_port()
503 err = uv_poll_start(&data->poll, UV_READABLE, in add_port()
505 if (err < 0) { in add_port()
H A Dwebsocket_connection.js610 var sentCallback = function fragmentSentCallback(err) { argument
611 if (err) {
614 cb(err);
/unit/src/
H A Dnxt_aix_send_file.c21 nxt_err_t err; in nxt_aix_event_conn_io_send_file() local
79 err = (n == -1) ? nxt_errno : 0; in nxt_aix_event_conn_io_send_file()
93 switch (err) { in nxt_aix_event_conn_io_send_file()
103 c->socket.error = err; in nxt_aix_event_conn_io_send_file()
104 nxt_log(c->socket.task, nxt_socket_error_level(err), in nxt_aix_event_conn_io_send_file()
106 c->socket.fd, err, fb->file->name, fb->file->fd, fb->file_pos, in nxt_aix_event_conn_io_send_file()
112 nxt_debug(c->socket.task, "sendfile() %E", err); in nxt_aix_event_conn_io_send_file()
H A Dnxt_application.c754 nxt_err_t err; in nxt_proto_sigchld_handler() local
766 switch (err = nxt_errno) { in nxt_proto_sigchld_handler()
775 nxt_alert(task, "waitpid() failed: %E", err); in nxt_proto_sigchld_handler()
823 char *err; in nxt_app_module_load() local
830 err = dlerror(); in nxt_app_module_load()
832 name, err != NULL ? err : "(null)"); in nxt_app_module_load()
839 err = dlerror(); in nxt_app_module_load()
841 name, err != NULL ? err : "(null)"); in nxt_app_module_load()
844 err = dlerror(); in nxt_app_module_load()
846 name, err != NULL ? err : "(null)"); in nxt_app_module_load()
H A Dnxt_conf_validation.c1939 nxt_regex_err_t err; in nxt_conf_vldt_match_pattern() local
1960 re = nxt_regex_compile(vldt->pool, &pattern, &err); in nxt_conf_vldt_match_pattern()
1962 if (err.offset < pattern.length) { in nxt_conf_vldt_match_pattern()
1965 err.msg, err.offset); in nxt_conf_vldt_match_pattern()
1969 err.msg); in nxt_conf_vldt_match_pattern()
H A Dnxt_conn.h243 const char *accept_syscall, nxt_err_t err);
H A Dnxt_conn_accept.c313 const char *accept_syscall, nxt_err_t err) in nxt_conn_accept_error() argument
321 switch (err) { in nxt_conn_accept_error()
324 nxt_debug(task, "%s(%d) %E", accept_syscall, lev->socket.fd, err); in nxt_conn_accept_error()
330 accept_syscall, lev->socket.fd, err); in nxt_conn_accept_error()
338 accept_syscall, lev->socket.fd, err); in nxt_conn_accept_error()
345 accept_syscall, lev->socket.fd, err); in nxt_conn_accept_error()
H A Dnxt_conn_connect.c124 nxt_err_t err; in nxt_conn_connect_test() local
139 if (err == 0) { in nxt_conn_connect_test()
151 nxt_err_t err; in nxt_conn_connect_error() local
157 err = c->socket.error; in nxt_conn_connect_error()
159 if (err == 0) { in nxt_conn_connect_error()
165 switch (err) { in nxt_conn_connect_error()
190 nxt_err_t err; in nxt_conn_connect_test_error() local
192 err = nxt_socket_error(c->socket.fd); in nxt_conn_connect_test_error()
194 if (err != 0) { in nxt_conn_connect_test_error()
195 c->socket.error = err; in nxt_conn_connect_test_error()
[all …]
H A Dnxt_conn_read.c135 nxt_err_t err; in nxt_conn_io_recvbuf() local
155 err = (n == -1) ? nxt_socket_errno : 0; in nxt_conn_io_recvbuf()
175 switch (err) { in nxt_conn_io_recvbuf()
178 nxt_debug(c->socket.task, "readv() %E", err); in nxt_conn_io_recvbuf()
187 c->socket.error = err; in nxt_conn_io_recvbuf()
201 nxt_err_t err; in nxt_conn_io_recv() local
206 err = (n == -1) ? nxt_socket_errno : 0; in nxt_conn_io_recv()
231 switch (err) { in nxt_conn_io_recv()
234 nxt_debug(c->socket.task, "recv() %E", err); in nxt_conn_io_recv()
240 nxt_debug(c->socket.task, "recv() %E", err); in nxt_conn_io_recv()
[all …]
H A Dnxt_conn_write.c189 nxt_err_t err; in nxt_conn_io_sendfile() local
220 switch (err) { in nxt_conn_io_sendfile()
271 int err; in nxt_sendfile() local
286 err = errno; in nxt_sendfile()
288 errno = err; in nxt_sendfile()
301 nxt_err_t err; in nxt_conn_io_writev() local
321 switch (err) { in nxt_conn_io_writev()
348 nxt_err_t err; in nxt_conn_io_send() local
363 switch (err) { in nxt_conn_io_send()
457 nxt_err_t err; in nxt_event_conn_io_writev() local
[all …]
H A Dnxt_cyassl.c74 int err; in nxt_cyassl_start() local
88 err = CyaSSL_Init(); in nxt_cyassl_start()
89 if (err != SSL_SUCCESS) { in nxt_cyassl_start()
108 int err; in nxt_cyassl_server_init() local
132 if (err != SSL_SUCCESS) { in nxt_cyassl_server_init()
142 if (err != SSL_SUCCESS) { in nxt_cyassl_server_init()
299 nxt_err_t err; in nxt_cyassl_conn_handshake() local
343 nxt_err_t err; in nxt_cyassl_conn_io_read() local
412 nxt_err_t err; in nxt_cyassl_conn_io_send() local
427 err = 0; in nxt_cyassl_conn_io_send()
[all …]
H A Dnxt_devpoll_engine.c561 nxt_err_t err; in nxt_devpoll_poll() local
583 err = (nevents == -1) ? nxt_errno : 0; in nxt_devpoll_poll()
591 level = (err == NXT_EINTR) ? NXT_LOG_INFO : NXT_LOG_ALERT; in nxt_devpoll_poll()
594 engine->u.devpoll.fd, err); in nxt_devpoll_poll()
H A Dnxt_dyld.c13 const char *err; in nxt_dyld_load() local
22 err = dlerror(); in nxt_dyld_load()
23 if (err == NULL) { in nxt_dyld_load()
24 err = "(null)"; in nxt_dyld_load()
38 const char *err; in nxt_dyld_symbol() local
56 err = dlerror(); in nxt_dyld_symbol()
57 if (err == NULL) { in nxt_dyld_symbol()
58 err = "(null)"; in nxt_dyld_symbol()
70 const char *err; in nxt_dyld_unload() local
77 err = dlerror(); in nxt_dyld_unload()
[all …]
H A Dnxt_epoll_engine.c876 nxt_err_t err; in nxt_epoll_poll() local
898 err = (nevents == -1) ? nxt_errno : 0; in nxt_epoll_poll()
905 level = (err == NXT_EINTR) ? NXT_LOG_INFO : NXT_LOG_ALERT; in nxt_epoll_poll()
908 engine->u.epoll.fd, err); in nxt_epoll_poll()
H A Dnxt_errno.c25 static u_char *nxt_bootstrap_strerror(nxt_err_t err, u_char *errstr,
41 nxt_uint_t err, invalid; in nxt_strerror_start() local
112 for (err = 0; err < nxt_sys_nerr; err++) { in nxt_strerror_start()
113 msg = strerror((int) err); in nxt_strerror_start()
116 nxt_sys_errlist[err].length = length; in nxt_strerror_start()
117 nxt_sys_errlist[err].start = p; in nxt_strerror_start()
122 nxt_sys_errlist[err].length = 13; in nxt_strerror_start()
123 nxt_sys_errlist[err].start = p; in nxt_strerror_start()
135 return nxt_cpystrn(errstr, (u_char *) strerror(err), size); in nxt_bootstrap_strerror()
140 nxt_runtime_strerror(nxt_err_t err, u_char *errstr, size_t size) in nxt_runtime_strerror() argument
[all …]
H A Dnxt_errno.h74 #define nxt_set_errno(err) \ argument
75 errno = err
77 #define nxt_set_socket_errno(err) \ argument
78 errno = err
84 typedef u_char *(*nxt_strerror_t)(nxt_err_t err, u_char *errstr, size_t size);
H A Dnxt_eventport_engine.c455 nxt_err_t err; in nxt_eventport_poll() local
503 err = (n < 0) ? nxt_errno : 0; in nxt_eventport_poll()
508 if (err == NXT_ETIME || err == NXT_EINTR) { in nxt_eventport_poll()
511 engine->u.eventport.fd, err, nevents); in nxt_eventport_poll()
515 if (err != NXT_ETIME) { in nxt_eventport_poll()
516 level = (err == NXT_EINTR) ? NXT_LOG_INFO : NXT_LOG_ALERT; in nxt_eventport_poll()
519 engine->u.eventport.fd, err); in nxt_eventport_poll()
521 if (err != NXT_EINTR) { in nxt_eventport_poll()
H A Dnxt_fiber.h28 nxt_err_t err; member
H A Dnxt_file.c203 nxt_err_t err; in nxt_file_read_ahead() local
209 POSIX_FADV_WILLNEED, err); in nxt_file_read_ahead()
211 if (nxt_fast_path(err == 0)) { in nxt_file_read_ahead()
217 POSIX_FADV_WILLNEED, err); in nxt_file_read_ahead()
451 nxt_err_t err; in nxt_fd_write() local
455 err = (n == -1) ? nxt_errno : 0; in nxt_fd_write()
460 nxt_thread_log_alert("write(%FD) failed %E", fd, err); in nxt_fd_write()
471 nxt_err_t err; in nxt_fd_read() local
475 err = (n == -1) ? nxt_errno : 0; in nxt_fd_read()
481 if (err == NXT_EAGAIN) { in nxt_fd_read()
[all …]

123