socat experts?

Josh ChaitinPollak josh at offthehill.org
Fri Jan 13 16:15:13 EST 2006


On Jan 13, 2006, at 4:02 PM, Bob BLU wrote:

> At 03:28 PM 1/13/2006, Josh ChaitinPollak wrote:
>> Is there a way to get socat to keep trying, and
>> never say connection refused? Given the nature of UDP communications,
>> its ok if we lose packets, but I want socat to keep trying with new
>> packets.
>
> You could have another program watch socat and if it dies then  
> restart it.
>
> If you think that is a suitable approach you can do it via /etc/ 
> inittab.
>
> scat:2345:respawn:sudo -u user /path/to/script

I thought of that, or of using a while(1) loop in a shell script. The  
problem with that is the restart time. I don't know how long it would  
take, probably less than a second, but I'm concerned it might be more  
time than we can afford. I'll try it out, its a temporary solution  
anyway, until I can write my own application.

The problem with sredird and RFC 2217 is that it is TCP based, and I  
need to use UDP, at least for now.



More information about the Discuss mailing list