03-12-2011
TCP timeouts can take entire minutes. Best-effort delivery and all that.
I'd try a simpler system using UDP. The client sends a 'hello' to a bunch of servers via one packet each then does recvmsg() in a loop until 200 milliseconds are up. Any servers that answered in time get considered.
As an aside, that 200 milliseconds requirement isn't quite sane. Many people and services use connections that have a higher minimum latency than that. Anything that's actually busy and not idle could add latency too.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
create one script
That reads a file <file>
Each line of <file> file contains just an account
The run the grep command like below
/usr/xpg4/bin/grep -E -e 'ACCOUNT.*' < File> > <OUTPUT FILE> (1 Reply)
Discussion started by: sapan123
1 Replies
2. Shell Programming and Scripting
Hi i need some help...
1.i have one main folder XYZ.
2.Many folders inside xyz say abc,def,mno
3.And inside each folder, i have many files .
want to print what ever files are present inside the subfolder abc,def,mno (what ever todays file ) in output file.out put file should be in xyz(say... (13 Replies)
Discussion started by: sapan123
13 Replies
3. UNIX for Advanced & Expert Users
Hi all,
How can i give ftp access to single user on solaris9 system? others should not have the ftp access. i know about ftpusers file in /etc/ftpd but still what about if so many new users are created daily?
And now for that single user how can we restict him to ftp the files only from... (2 Replies)
Discussion started by: santhoshkumar_d
2 Replies
4. SuSE
Hello,
Currently we are having different linux servers (for example: let's assume audio server, video server and text server) to handle requests from outside users. Suppose the outside users in different LAN (Local Area Network), other than the servers. For example user is in 20 series LAN and... (5 Replies)
Discussion started by: navneet_2009
5 Replies
5. HP-UX
Hi,
I've to do a simple job many times whenever it has been asked, just i've to log in to all of fourtien HP servers and i've to execute
ps -fu user > temp
cat temp|sendmail "xyz@z.com"
commands to send the statics of all of 14 servers over the mail to particular user id..
Though logging... (4 Replies)
Discussion started by: vickramshetty
4 Replies
6. Shell Programming and Scripting
Hello All,
I'm new to unix and i need the below favour from you.
I have list of 50 unix server. I need to login to all the server one by one and with the same user and password. I will declare the user name and password globally in the script.
for example :
servername- hyperV
user name... (4 Replies)
Discussion started by: Hari A
4 Replies
7. Shell Programming and Scripting
Hi,
I have a requirement with,
No~Dt~Notes
1~2011/08/1~"aaa
bbb
ccc
ddd
eee
fff
ggg
hhh"
Single column alone got splitted into multiple lines.
I require the output as
No~Dt~Notes
1~2011/08/1~"aaa<>bbb<>ccc<>ddd<>eee<>fff<>ggg<>hhh"
mean to say those new lines to be... (1 Reply)
Discussion started by: Bhuvaneswari
1 Replies
8. Shell Programming and Scripting
I have 9 servers, on each server a script with common name is available.
I send a token file to all server from 1 particular server. so when a daemon job checks that token file is available then it triggers the script..
I want to know is there any command or script which I will run/execute on... (16 Replies)
Discussion started by: mirwasim
16 Replies
9. Shell Programming and Scripting
Hi All,
How can i run a single command on multiple servers with or without giving credentials.
I have a file(servers.txt) which has got list of servers and i want to run a command lsb_release -dr on all these servers and get output of those servers against each server.
I tried below code... (9 Replies)
Discussion started by: darling
9 Replies
LEARN ABOUT MOJAVE
curlopt_http200aliases
CURLOPT_HTTP200ALIASES(3) curl_easy_setopt options CURLOPT_HTTP200ALIASES(3)
NAME
CURLOPT_HTTP200ALIASES - specify alternative matches for HTTP 200 OK
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTP200ALIASES,
struct curl_slist *aliases);
DESCRIPTION
Pass a pointer to a linked list of aliases to be treated as valid HTTP 200 responses. Some servers respond with a custom header response
line. For example, SHOUTcast servers respond with "ICY 200 OK". Also some very old Icecast 1.3.x servers will respond like that for cer-
tain user agent headers or in absence of such. By including this string in your list of aliases, the response will be treated as a valid
HTTP header line such as "HTTP/1.0 200 OK".
The linked list should be a fully valid list of struct curl_slist structs, and be properly filled in. Use curl_slist_append(3) to create
the list and curl_slist_free_all(3) to clean up an entire list.
The alias itself is not parsed for any version strings. The protocol is assumed to match HTTP 1.0 when an alias match.
DEFAULT
NULL
PROTOCOLS
HTTP
EXAMPLE
TODO
AVAILABILITY
Added in 7.10.3
RETURN VALUE
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO
CURLOPT_HTTP_VERSION(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_HTTP200ALIASES(3)