search for: enotsock

Displaying 20 results from an estimated 52 matches for "enotsock".

2003 Apr 01
0
minor cosmetic fix when using a proxy
...efore release. I've been spoiled by such a useful and stable tool. When using a proxy script to connect (I'm using the connect.c code found thru google) I get an error message trying to set TCP_NODELAY on a non-socket. I silenced the message by skipping the call to error only if errno == ENOTSOCK. There is probably a better way to handle this, maybe not calling set_nodelay when a proxy is in use? I just figured reporting it was better than keeping silent. Apply, mangle, or ignore as you see fit. See attached. -- Lee Eakin - leakin at dfw.nostrum.com I think our coffee machine is...
2019 Jul 12
2
Dovecot release v2.3.7
...6f62d1..766841f2f 100644 --- a/src/lib/ostream-file.c +++ b/src/lib/ostream-file.c @@ -334,7 +334,7 @@ static void o_stream_tcp_flush_via_nodelay(struct file_ostream *fstream) { if (net_set_tcp_nodelay(fstream->fd, TRUE) < 0) { if (errno != ENOTSUP && errno != ENOTSOCK && - errno != ENOPROTOOPT) { + errno != ENOPROTOOPT && errno != EINVAL) { i_error("file_ostream.net_set_tcp_nodelay(%s, TRUE) failed: %m", o_stream_get_name(&fstream->ostream...
2004 Nov 26
0
Dovecot 1.0-test52 and LDAP authentication
...0 [pid 16545] getsockname(0, {sa_family=AF_INET, sin_port=htons(143), sin_addr=inet_addr("0.0.0.0")}, [16]) = 0 [pid 16545] getsockname(1, <unfinished ...> [pid 16547] <... select resumed> ) = 1 (in [5]) [pid 16545] <... getsockname resumed> 0xfef3d050, [28]) = -1 ENOTSOCK (Socket operation on non-socket) [pid 16547] read(5, <unfinished ...> [pid 16545] sendmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 56}], msg_controllen=0, msg_flags=0}, 0 <unfinished ...> [pid 16547] <... read resumed&...
2008 Sep 30
1
Broken pipe, x86_64 CentOS 5.2
Hi All, I have a problem with torque (openPBS) on x86_64 CentOS 5.2. Just to add there's no problem on a 32bit CentOS 5.2 or 64bit Ubuntu 8.04. The problem is that pbs_mom's child quits without giving any error logs. [root at frodo9 torque-2.3.3]# strace -f pbs_mom . . . bind(6, {sa_family=AF_INET, sin_port=htons(15002), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 time(NULL)
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...en=0}) = 0 clone(Process 23938 attached (waiting for parent) Process 23938 resumed (parent 23937 ready) child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2aaaaad30db0) = 23938 [pid 23937] exit_group(0) = ? getsockname(3, 0x7fff6b7728a0, [128]) = -1 ENOTSOCK (Socket operation on non-socket) fcntl(3, F_GETFD) = 0 dup(3) = 7 fcntl(7, F_SETFD, 0) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8 close(3) = 0 fcntl(8, F_GETFD) = 0 d...
2019 Jul 12
0
Dovecot release v2.3.7
...t; --- a/src/lib/ostream-file.c > +++ b/src/lib/ostream-file.c > @@ -334,7 +334,7 @@ static void o_stream_tcp_flush_via_nodelay(struct file_ostream *fstream) > { > if (net_set_tcp_nodelay(fstream->fd, TRUE) < 0) { > if (errno != ENOTSUP && errno != ENOTSOCK && > - errno != ENOPROTOOPT) { > + errno != ENOPROTOOPT && errno != EINVAL) { > i_error("file_ostream.net_set_tcp_nodelay(%s, TRUE) failed: %m", > o_stream_get_name(&f...
2009 Mar 20
0
tftpd-hpa can't reopen /dev/log
...0 [pid 24082] bind(4, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("169.254.1.1")}, 16) = 0 [pid 24082] connect(4, {sa_family=AF_INET, sin_port=htons(57109), sin_addr=inet_addr("169.254.1.4")}, 16) = 0 [pid 24082] setsockopt(0, SOL_IP, IP_MTU_DISCOVER, [0], 4) = -1 ENOTSOCK (Socket operation on non-socket) [pid 24082] time(NULL) = 1237569275 [pid 24082] open("/etc/localtime", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 24082] open("/etc/localtime", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 24082] send(3, &qu...
2011 Jun 30
4
sshd and .bashrc
...iles. If the SSH_SOURCE_BASHRC is uncommented in config-top.h it will attempt to do so as previously, but that's commented out in the distributed version. But it turns out that bash's isnetconn() function was returning 0, which in turn was caused by getpeername() failing (errno == ENOTSOCK) when it was being used to get information about stdin. And sure enough, the child process spawned by Redhat's sshd showed the following for standard input (reported by "lsof") ... 0u unix 0xffff81033fec2b80 10237328 socket ... whereas the same child process spawned b...
2009 May 25
2
Segfault with dovecot -n / dovecot 2.0
...= 0 munmap(0x7ff654983000, 4096) = 0 write(1, "# OS: Linux 2.6.24-23-xen x86_64"..., 51# OS: Linux 2.6.24-23-xen x86_64 Ubuntu 8.04.2 nfs ) = 51 lseek(1, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) getsockname(1, 0x7fff5c986f50, [18446744069414584348]) = -1 ENOTSOCK (Socket operation on non-socket) --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Process 30890 detached Version is still dovecot 2.0 hg latest. Regards, Sebastian
2005 Jan 25
2
Testing preRelease 0.3
...ed during testing... Andreas =========================================================================================== couldn''t connect to peer 138.217.126.134:6346 ./rubytorrent/server.rb:108:in `accept'': An operation was attempted on something that is not a socket. (Errno::ENOTSOCK) from ./rubytorrent/server.rb:108:in `receive'' from ./rubytorrent/server.rb:81:in `start'' from ./rubytorrent/server.rb:79:in `initialize'' from ./rubytorrent/server.rb:79:in `new'' from ./rubytorrent/server.rb:79:in `sta...
2019 Nov 03
1
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...= 6929 22:55:15.294928 close(13) = 0 22:55:15.294969 fcntl(14, F_GETFL) = 0x1 (flags O_WRONLY) 22:55:15.295006 fcntl(14, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 22:55:15.295039 lseek(14, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) 22:55:15.295065 getsockname(14, 0x7ffd59156a40, [28]) = -1 ENOTSOCK (Socket operation on non-socket) 22:55:15.295109 write(14, "X-Sieve: Pigeonhole Sieve 0.5.4 ()\nX-Sieve-Redirected-From: ...", 1461) = 1461 22:55:15.295150 close(14) = 0 22:55:15.295175 wait4(6929, 0x562102d4fee4, WNOHANG, NULL) = 0 22:55:15.295211 epoll_wait(12, [], 1, 3000...
2019 Nov 02
2
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...ere. 22:55:15.294928 close(13) = 0 22:55:15.294969 fcntl(14, F_GETFL) = 0x1 (flags O_WRONLY) 22:55:15.295006 fcntl(14, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 22:55:15.295039 lseek(14, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) 22:55:15.295065 getsockname(14, 0x7ffd59156a40, [28]) = -1 ENOTSOCK (Socket operation on non-socket) 22:55:15.295109 write(14, "EDITTED LONG MESSAGE DATA\n", 1461) = 1461 22:55:15.295150 close(14) = 0 22:55:15.295175 wait4(6929, 0x562102d4fee4, WNOHANG, NULL) = 0 22:55:15.295211 epoll_wait(12, [], 1, 30000) = 0 Here's where the 30 se...
2010 Oct 10
9
Dovecot 2.0.5 and BSDI 4.3 again
..._ip); i_error("&conn.remote_port: %d",&conn.remote_port); if (conn.fd < 0) { struct stat st; int orig_errno = errno; if (conn.fd == -1) return; if (errno == ENOTSOCK) { /* it's not a socket. should be a fifo. */ } else if (errno == EINVAL && (fstat(l->fd, &st) < 0 || !S_ISFIFO(st.st_mode))) { /* BSDI fails accept(fifo) with EINVAL. */...
2010 Mar 03
1
[RFC][ PATCH 2/3] vhost-net: handle vnet_hdr processing for MRG_RX_BUF
...; + len += vq->guest_hlen - vq->sock_hlen; vhost_add_used_and_signal(&net->dev, vq, vq->heads, headcount); if (unlikely(vq_log)) vhost_log_write(vq, vq_log, log, len); @@ -483,6 +481,13 @@ return ERR_PTR(-ENOTSOCK); } +static int vhost_sock_is_raw(struct socket *sock) +{ + if (!sock || !sock->sk) + return 0; + return sock->sk->sk_type == SOCK_RAW; +} + static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) { struct socket *sock, *oldsoc...
2010 Mar 03
1
[RFC][ PATCH 2/3] vhost-net: handle vnet_hdr processing for MRG_RX_BUF
...; + len += vq->guest_hlen - vq->sock_hlen; vhost_add_used_and_signal(&net->dev, vq, vq->heads, headcount); if (unlikely(vq_log)) vhost_log_write(vq, vq_log, log, len); @@ -483,6 +481,13 @@ return ERR_PTR(-ENOTSOCK); } +static int vhost_sock_is_raw(struct socket *sock) +{ + if (!sock || !sock->sk) + return 0; + return sock->sk->sk_type == SOCK_RAW; +} + static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) { struct socket *sock, *oldsoc...
2008 Mar 10
2
SWAT Won't Start - Alarm Clock
...8}, {SIG_IGN}, 8) = 0 send(4, "<27>Mar 7 20:06:34 swat[31787]:"..., 89, 0) = 89 rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0 geteuid32() = 0 write(3, "[2008/03/07 20:06:34, 0] lib/acc"..., 56) = 56 getpeername(1, 0xbfff9e10, [16]) = -1 ENOTSOCK (Socket operation on non-socket) time(NULL) = 1204938394 time([1204938394]) = 1204938394 getpid() = 31787 rt_sigaction(SIGPIPE, {0x411140, [], SA_RESTORER, 0x35fec8}, {SIG_IGN}, 8) = 0 send(4, "<27>Mar 7...
2008 Mar 18
5
xexec and dovecot 1.1
I'll test very interesting plugin xexec. It seems very nice and can be used in many things. It's compiled perfect with dovecot 1.0, but certanly not with dovecot 1.1. It's stopped with next error: In file included from cmd-xexec.c:30: xexec.h:8: error: expected specifier-qualifier-list before 'array_t' cmd-xexec.c: In function 'cmd_xexec': cmd-xexec.c:134: error:
2019 Nov 02
0
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...28 close(13) = 0 > 22:55:15.294969 fcntl(14, F_GETFL) = 0x1 (flags O_WRONLY) > 22:55:15.295006 fcntl(14, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 > 22:55:15.295039 lseek(14, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) > 22:55:15.295065 getsockname(14, 0x7ffd59156a40, [28]) = -1 ENOTSOCK (Socket operation on non-socket) > 22:55:15.295109 write(14, "EDITTED LONG MESSAGE DATA\n", 1461) = 1461 > 22:55:15.295150 close(14) = 0 > 22:55:15.295175 wait4(6929, 0x562102d4fee4, WNOHANG, NULL) = 0 > 22:55:15.295211 epoll_wait(12, [], 1, 30000) = 0 > >...
2008 Aug 11
0
rsync failure with error 12
...a8}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [HUP INT USR1 USR2 TERM CHLD], NULL, 8) = 0 rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGXFSZ, {SIG_IGN}, NULL, 8) = 0 getcwd("/etc", 4095) = 5 getsockopt(0, SOL_SOCKET, SO_TYPE, 0xbf9d4564, 0xbf9d4560) = -1 ENOTSOCK (Socket operation on non-socket) open("/etc/rsyncd.conf", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=157, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f83000 read(3, "[tndchas]\n exclude = \"*.b"...
2011 Sep 17
0
[LLVMdev] Build errors on r139985
...0/llvm/include/llvm/Support/system_error.h:563: error: ‘ESRCH’ was not declared in this scope /home/carl/Downloads/llvm3.0/llvm/include/llvm/Support/system_error.h:564: error: ‘ENOTDIR’ was not declared in this scope /home/carl/Downloads/llvm3.0/llvm/include/llvm/Support/system_error.h:565: error: ‘ENOTSOCK’ was not declared in this scope /home/carl/Downloads/llvm3.0/llvm/include/llvm/Support/system_error.h:569: error: ‘EINVAL’ was not declared in this scope /home/carl/Downloads/llvm3.0/llvm/include/llvm/Support/system_error.h:571: error: ‘ENOTCONN’ was not declared in this scope /home/carl/Downloads/...