Displaying 16 results from an estimated 16 matches for "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...
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 wr...
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 (falling back to an INET_ANY or whatever connect uses
while not being bound to a specific IP).
The "problem" is that the sock_connect_wto must now be given another
parameter, the source hostnam...
2023 Jun 11
1
Upssched 100% CPU after updating Debian 12
...rtbeat-failure-timer (660 seconds)
---------------------------------------------------
This is daemon log from the new version, first two lines are the last lines of the startup messages. One same upssched process (124835) running with 100% cpu from 21:07:
Jun 11 21:02:40 fricka dummy-ups[121803]: sock_connect: enabling asynchronous mode (auto)
Jun 11 21:02:41 fricka usbhid-ups[121820]: sock_connect: enabling asynchronous mode (auto)
Jun 11 21:07:40 fricka upssched[124835]: Timer daemon started
Jun 11 21:07:40 fricka upssched[124835]: New timer: heartbeat-failure-timer (660 seconds)
Jun 11 21:07:40 frick...
2024 Mar 08
1
NUT 2.8.1 (source build) Pi OS bookworm 32 bit - nut-monitor trying to connect to UPS - Connection Refused
...y-ups-heartbeat
Mar 08 07:49:05 WiringCloset nut-server[6536]: /etc/nut/upsd.users is world readable
Mar 08 07:49:05 WiringCloset upsd[6536]: Connected to UPS [ups]: usbhid-ups-ups
Mar 08 07:49:05 WiringCloset upsd[6536]: Found 2 UPS defined in ups.conf
Mar 08 07:49:05 WiringCloset dummy-ups[6531]: sock_connect: enabling asynchronous mode (auto)
Mar 08 07:49:05 WiringCloset nut-server[6536]: Running as foreground process, not saving a PID file
Mar 08 07:49:05 WiringCloset nut-server[6536]: upsnotify: failed to notify about state 2: no notification tech defined, will not spam more about it
Mar 08 07:49:05...
2023 Jan 28
1
nut does not start after reboot
...ing on 192.168.3.7 port 3493
2023-01-28T09:07:25+1100 upsd[2400]: listening on 127.0.0.1 port 3493
2023-01-28T09:07:25+1100 nut-server[2400]: Connected to UPS [ups]: usbhid-ups-ups
2023-01-28T09:07:25+1100 upsd[2400]: Connected to UPS [ups]: usbhid-ups-ups
2023-01-28T09:07:25+1100 usbhid-ups[2399]: sock_connect: enabling asynchronous mode (auto)
2023-01-28T09:07:25+1100 nut-server[2400]: Running as foreground process, not saving a PID file
2023-01-28T09:07:25+1100 upsd[2400]: Running as foreground process, not saving a PID file
2023-01-28T09:07:26+1100 systemd[1]: Started nut-monitor.service - Network UPS...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...at-failure-timer (660 seconds)
---------------------------------------------------
This is daemon log from the new version, first two lines are the last lines of the startup messages. One same upssched process (124835) running with 100% cpu from 21:07:
Jun 11 21:02:40 fricka dummy-ups[121803]: sock_connect: enabling asynchronous mode (auto)
Jun 11 21:02:41 fricka usbhid-ups[121820]: sock_connect: enabling asynchronous mode (auto)
Jun 11 21:07:40 fricka upssched[124835]: Timer daemon started
Jun 11 21:07:40 fricka upssched[124835]: New timer: heartbeat-failure-timer (660 seconds)
Jun 11 21:07:40 f...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...at-failure-timer (660 seconds)
---------------------------------------------------
This is daemon log from the new version, first two lines are the last lines of the startup messages. One same upssched process (124835) running with 100% cpu from 21:07:
Jun 11 21:02:40 fricka dummy-ups[121803]: sock_connect: enabling asynchronous mode (auto)
Jun 11 21:02:41 fricka usbhid-ups[121820]: sock_connect: enabling asynchronous mode (auto)
Jun 11 21:07:40 fricka upssched[124835]: Timer daemon started
Jun 11 21:07:40 fricka upssched[124835]: New timer: heartbeat-failure-timer (660 seconds)
Jun 11 21:07:40 f...
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...
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, se...
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
....0.0.0 port 3943
May 27 09:15:13 RaspBerry-Pi-3 upsd[2948]: /etc/nut/upsd.conf is world readable
May 27 09:15:13 RaspBerry-Pi-3 upsd[2948]: listening on 127.0.0.1 port 3943
May 27 09:15:13 RaspBerry-Pi-3 upsd[2948]: not listening on 0.0.0.0 port 3943
May 27 09:15:13 RaspBerry-Pi-3 usbhid-ups[2944]: sock_connect: enabling asynchronous mode (auto)
May 27 09:15:13 RaspBerry-Pi-3 nut-server[2948]: Connected to UPS [ups]: usbhid-ups-ups
May 27 09:15:13 RaspBerry-Pi-3 nut-server[2948]: Found 1 UPS defined in ups.conf
May 27 09:15:13 RaspBerry-Pi-3 upsd[2948]: Connected to UPS [ups]: usbhid-ups-ups
May 27 09:15:...
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.)
soc...
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