Displaying 16 results from an estimated 16 matches for "sock_connected".
Did you mean:
sock_connect
2004 Aug 06
3
libnet: sock_connected insists on a timeout
While working on integrating nonblocking IO into libshout, I noticed
that sock_connected cannot be called without blocking. If I read it
right, a timeout of zero will cause the call to block until the socket
is connected. So, my questions:
1. Am I reading this right?
2. How should I poll a pending connection?
I'd prefer to have a zero timeout act as a poll, but I don't know i...
2009 Jul 06
1
Nonblocking connect is not proprly checked in poll implementation
Hello,
I found a bug in Icecast-2.3.2. SVN trunk is affected either. The problem lies
in src/net/sock.c: sock_connected() function.
This function is used to check status of socket after nonblocking connect(2)
and it has two implementations: select(2) and poll(2). The select branch does
the right job---it gets socket status by getsockopt(2) after selecting for
write. But the poll branch does not. To make things wron...
2007 May 15
0
Setting explicitly the source of slaves connections
Hi,
As I wanted my slaves to connect to their master using a specific IP
address when they have more than one, though I had to modify a few
things regarding net/sock.c:
I mainly took the code from sock_get_server_socket and removed the
reference to the port setting, in order to modify sock_connect_wto.
Then I changed a few things to not care too much about not being given a
source hostname
2023 Jun 11
1
Upssched 100% CPU after updating Debian 12
Hi,
I have been running nut successfully for a long time with my Debian 11 server. I upgraded my server to Debian 12 today, which upgraded nut also from 2.7.4-13 to 2.8.0-7. I noticed that after upgrade there was a upssched process running and taking 100% cpu time.
I checked if there were any changes to configuration file formats with nut upgrade and only differences I noticed were a terminology
2024 Mar 08
1
NUT 2.8.1 (source build) Pi OS bookworm 32 bit - nut-monitor trying to connect to UPS - Connection Refused
I've installed 2.8.1 on a Raspberry PI 5 using Pi OS bookworm 64 bit (Debian 12) with success.
When I take that same configuration to a PI 3B running bookworm 32 bit, compile from source, use the same files from /etc/nut, I get a 'nut-monitor ups at localhost Connection refused.
usbhid-ups and dummy-ups are running at the time.
What should I be looking for?
Dan
-------------- next
2023 Jan 28
1
nut does not start after reboot
On up-to-date f36, with latest kernel 6.1.7-100.fc36.x86_64.
After receiving a few of these messages
Broadcast message from nut at e7.eyal.emu.id.au (somewhere)
UPS ups at ups is unavailable
I noticed and ran
sudo systemctl restart nut-driver at ups.service
which triggered
Broadcast message from nut at e7.eyal.emu.id.au (somewhere)
Communications with UPS ups at ups established
I now added
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
Hi,
I ran the strace command while upssched was 100% CPU hungry. This is what I got:
1686633611.702798 read(7, "", 1) = 0 <0.000004>
1686633611.702816 read(7, "", 1) = 0 <0.000004>
1686633611.702834 pselect6(11, [7 10], NULL, NULL, {tv_sec=1, tv_nsec=0}, NULL) = 1 (in [7], left {tv_sec=0, tv_nsec=999998800}) <0.000006>
1686633611.702862 read(7,
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
Hi,
I ran the strace command while upssched was 100% CPU hungry. This is what I got:
1686633611.702798 read(7, "", 1) = 0 <0.000004>
1686633611.702816 read(7, "", 1) = 0 <0.000004>
1686633611.702834 pselect6(11, [7 10], NULL, NULL, {tv_sec=1, tv_nsec=0}, NULL) = 1 (in [7], left {tv_sec=0, tv_nsec=999998800}) <0.000006>
1686633611.702862 read(7,
2004 Aug 06
0
Icecast drop in replacement for shoutcast
...c:40:
/usr/include/arpa/inet.h:89: syntax error before `inet_nsap_addr'
/usr/include/arpa/inet.h:89: syntax error before `u_char'
/usr/include/arpa/inet.h:89: warning: data definition has no type or
storage class
/usr/include/arpa/inet.h:90: syntax error before `*'
sock.c: In function `sock_connected':
sock.c:389: syntax error before `wfds'
sock.c:397: `wfds' undeclared (first use in this function)
sock.c:397: (Each undeclared identifier is reported only once
sock.c:397: for each function it appears in.)
*** Error code 1
Stop in /home/booyeah/icecast-2.0-alpha-2/src/net (line 223 o...
2004 Aug 06
2
building icecast2 on OpenBSD
...o make of it. changing "-lpthread" to "-pthread" in the configure.in
for *) did the trick. now im in the same boat as you: gmake fails in src/net -
syntax errors from a few headers included in sock.c (<arpa/inet.h> and
<sys/socket.h>), and a fatal error in sock.c (sock_connected) at line 397 (wfds
undeclared), after a syntax error on line 389.
thanks for the help, and hopefully this points someone in the right direction.
jeff
--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send...
2004 Aug 06
6
need help/ideas please, oh and answers
> Um, why wouldn't you just use apache for this?
Exactaly, I would recommend the mod_mp3 project for something like that.
http://media.tangent.org/
They are doing almost exactaly what sound like you are looking for. There
is also the project 'ampache' that takes this one step further and adds a
MySQL database backend to a PHP front.
JStanley
--- >8 ----
List archives:
2004 Aug 06
3
Icecast drop in replacement for shoutcast
On Fri, 2003-04-18 at 20:01, Travis Pinney wrote:
> I tried the icecast-2.0-alpha-2-20030416.tar.gz file. I am using OpenBSD
> 3.2 and it configured ok but it had a problem linking libxslt. I have it
> installed
> from the ports. Not sure what it is but I am going to check it out.
>
> Here is the last part of the log.
>
> checking for xsltParseStylesheetFile... no
>
2023 May 27
2
unable to connect to APC UPS Connection Refused
I've not been able to connect to my ups using NUT 2.7.4 or NUT 2.8.0.
2.7.4 was installed as a package, 2.8.O was compiled from source.
I've messed with permissons, everything is root:root and has the approprate read/execute permissons. I've tried two differnt UPS(es) APC & CyperPower. I'm running PI OS (Raspbian) on a Raspberry Pi3 model B. The port 3493 is open (UFW). I can
2004 Aug 06
5
building icecast2 on OpenBSD
Is there anyone who has built icecast2 successfully for OpenBSD? I built it
from source with no problem on Linux, but on my OBSD system the configure bombs
while checking for a function in libxslt...
# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working
2004 Aug 06
2
libshout2 compiling problems under FreeBSD?
...ock.c:54:
sock.h:39: redefinition of `struct iovec'
sock.c: In function `sock_get_localip':
sock.c:95: warning: implicit declaration of function `gethostname'
sock.c: In function `sock_write':
sock.c:316: warning: implicit declaration of function `vsnprintf'
sock.c: In function `sock_connected':
sock.c:390: syntax error before "wfds"
sock.c:398: warning: implicit declaration of function `FD_ZERO'
sock.c:398: `wfds' undeclared (first use in this function)
sock.c:398: (Each undeclared identifier is reported only once
sock.c:398: for each function it appears in.)
sock....
2004 Aug 06
3
libshout2 compiling problems under FreeBSD?
Hi,
I couldn't find anything about this subject from archive - are there known
problems with compiling libshout2 under FreeBSD 5.1 or 4.8 (both are up to
date). I downloaded libshout2 latest nightly snapshot and tried to compile
it on 5.0 and then later on 4.8. Both failed (problems were mostly around
sock.c, sock.h, resolver.c - redeclaring and syntax errors). Thinking that
it might be a