Displaying 19 results from an estimated 19 matches for "maxtries".
2018 Mar 09
2
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
A solution is to have parallel:::.slaveRSOCK() attempt to connect
multiple times before failing, e.g.
makeSOCKmaster <- function(master, port, timeout, useXDR, maxTries
= 10L, interval = 1.0) {
port <- as.integer(port)
for (i in seq_len(maxTries)) {
con <- tryCatch({
socketConnection(master, port = port, blocking = TRUE,
open = "a+b", timeout = timeout)
}, error = i...
2010 Feb 10
0
Script for bond+vlan bridging from red hat
2018 Mar 10
1
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
...l.
>
> Best,
>
> luke
>
>
> On Fri, 9 Mar 2018, Henrik Bengtsson wrote:
>
>> A solution is to have parallel:::.slaveRSOCK() attempt to connect
>> multiple times before failing, e.g.
>>
>> makeSOCKmaster <- function(master, port, timeout, useXDR, maxTries
>> = 10L, interval = 1.0) {
>> port <- as.integer(port)
>> for (i in seq_len(maxTries)) {
>> con <- tryCatch({
>> socketConnection(master, port = port, blocking = TRUE,
>> open = "a+b...
2008 Apr 14
0
Etch Release / Bond networking
...$2
# Don't add $dev to $bridge if it's already on a bridge.
if ! brctl show | grep -q ${dev} ; then
brctl addif ${bridge} ${dev}
fi
}
# adds $dev to $bridge but waits for $dev to be in running state first
add_to_bridge2() {
local bridge=$1
local dev=$2
local maxtries=10
echo -n "Waiting for ${dev} to negotiate link."
for i in `seq ${maxtries}` ; do
if ifconfig ${dev} | grep -q RUNNING ; then
break
else
echo -n '.'
sleep 1
fi
done
if [ ${i} -eq ${maxtries} ] ; then ec...
2008 Dec 23
2
DomU strange network behavior
...ansfer_addrs bond0 xenbr0
transfer_routes bond0 xenbr0
}
op_stop () {
transfer_routes xenbr0 bond0
ip link set xenbr0 down
brctl delbr xenbr0
}
# adds $dev to $bridge but waits for $dev to be in running state first
add_to_bridge2() {
local bridge=$1
local dev=$2
local maxtries=10
echo -n "Waiting for ${dev} to negotiate link."
for i in `seq ${maxtries}` ; do
if ifconfig ${dev} | grep -q RUNNING ; then
break
else
echo -n ''.''
sleep 1
fi
done
if [ ${i} -eq ${maxtries} ]...
2018 Mar 09
0
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
...er
died, and then you want the workers to die as well.
Best,
luke
On Fri, 9 Mar 2018, Henrik Bengtsson wrote:
> A solution is to have parallel:::.slaveRSOCK() attempt to connect
> multiple times before failing, e.g.
>
> makeSOCKmaster <- function(master, port, timeout, useXDR, maxTries
> = 10L, interval = 1.0) {
> port <- as.integer(port)
> for (i in seq_len(maxTries)) {
> con <- tryCatch({
> socketConnection(master, port = port, blocking = TRUE,
> open = "a+b", timeout = timeou...
2008 Apr 24
1
select() timeout on winbindd_privileged pipe
...k skew
[2008/04/18 16:52:50, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(528)
ads_cleanup_expired_creds: Ticket in ccache[MEMORY:winbind_ccache]
expiration Fri, 18 Apr 2008 17:13:03 MST
The ads_krb5_mk_req function has a while loop that loops 3 times 'while
(!creds_ready && (i < maxtries))' (i=0, maxtries=3). This corresponds
with 3 requests to the kdc for info during the period of the pause:
16:52:20.839894 IP 192.168.1.210.32891 > 192.168.1.207.88: v5
16:52:20.840419 IP 192.168.1.207.88 > 192.168.1.210.32891:
16:52:30.837599 IP 192.168.1.210.32891 > 192.168.1.207.8...
2013 Jun 08
0
xen-4 dom0 bridge failed to bring up eth1
...w irtt
Iface
0.0.0.0 194.95.57.33 0.0.0.0 UG 0 0 0 eth1
194.95.57.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
# more /var/tmp/network-bridge.log
...
+ for i in ''`seq ${maxtries}`''
+ ifconfig peth1
+ grep -q RUNNING
+ echo -n .
+ sleep 1
+ ''['' 10 -eq 10 '']''
+ echo -n ''(link isnt in running state)''
+ echo
+ add_to_bridge eth1 peth1
+ local bridge=eth1
+ local dev=peth1
+ ''['' -e /sys/class/net/e...
2006 May 12
2
[patch] xen bridged network setup fixes
Hi,
The attached patch fixes the setup of the bridge ports and the bridge
itself. Changes:
* move some functions to xen-network-common.sh, so both vif-bridge
and network-bridge can use them.
* add a new function to configure bridge ports and use it.
* make sure arp requests, ipv6 autoconfiguration and ipv6 router
solicitations are disabled for the bridge ports and also for the
2018 Mar 09
2
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
BACKGROUND:
While troubleshooting random, occasionally occurring, errors from
parallel::makePSOCKcluster("localhost", port = 11000);
Error in socketConnection("localhost", port = port, server = TRUE,
blocking = TRUE, :
cannot open the connection
I had another look at parallel:::newPSOCKnode(), which is used
internally to set up each background worker. It is designed to,
2006 Jul 07
7
[PATCH] xenconsole fix
xenconsole fix. reference of tty->count in xencons_close() is racy.
It must be protected by tty_sem semaphore like con_close() in
drivers/char/vt.c
--
yamahata
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2013 Aug 11
0
N-Power MEV-3000LT compatibility report and problem
...terpret any "ACK\r" response as failure
(the blazer_command() function normally returns the number of octets received). And the
calling function doesn't attempt to continue, drivers/blazer.c:777
void upsdrv_shutdown(void)
{
int retry;
for (retry = 1; retry <= MAXTRIES; retry++) {
if (blazer_instcmd("shutdown.stop", NULL) != STAT_INSTCMD_HANDLED) {
continue;
}
if (blazer_instcmd("shutdown.return", NULL) != STAT_INSTCMD_HANDLED) {
continue;...
2011 May 14
2
NUT: new blazer_usb subdriver proposal
Hello,
I've recently bought two cheap UPS (http://www.ldlc.com/fiche/PB00109242.html).
They're not supported natively by NUT (even though the monitoring
software is UPSilon from megatec).
After some investigation, they almost use the krauler-type
communication already supported in the blazer_usb driver. However, the
UPS won't reply if the language ID is not 0x4095...
Therefore, I
2013 Aug 11
2
N-Power MEV-3000LT compatibility report and problem
On Aug 11, 2013, at 2:12 PM, ????????? ???????? wrote:
> I see no problem with how the device communicates the Blazer/Megatec protocol.
> I must have found a bug in the driver.
It is possible that the shutdown was tested with a different implementation of the protocol. What do you get from the "I" command?
On Aug 11, 2013, at 11:25 AM, ????????? ???????? wrote:
> So I
2008 Jul 10
2
[PATCH] tripplite driver updates
...m
+ Tripp Lite at http://www.tripplite.com/linux/.
*/
/* REFERENCE 2
@@ -111,30 +111,6 @@
#include <math.h>
#include <ctype.h>
-#define ENDCHAR '\n' /* replies end with CR LF -- use LF to end */
-#define IGNCHAR '\r' /* ignore CR */
-#define MAXTRIES 3
-#define SER_WAIT_SEC 3 /* allow 3.0 sec for ser_get calls */
-#define SER_WAIT_USEC 0
-#define DEFAULT_OFFDELAY 64 /* seconds (max 0xFF) */
-#define DEFAULT_STARTDELAY 60 /* seconds (max 0xFFFFFF) */
-#define DEFAULT_BOOTDELAY 64 /* seconds (max 0xFF) */
-#define MAX_VOLT 13.4...
2005 Mar 07
2
dovecot patch for TCB auth
...ome details about which attribute we're planning to use and
their TCB equivalents
uidNumber ~ u_id
uid ~ u_name
userPassword ~ u_pwd
shadowLastChange ~ u_succhg
shadowExpire ~ u_expdate
shadowMax ~ u_life
shadowWarning ~ u_exp [ shadowWarning = u_life - u_exp]
plus the one we wrote :
maxTries ~ u_maxtries
[ maximum number of consecutive unsuccessful login attempts to the
account that are permitted until the account is disabled ]
numUnsucLog ~ u_numunsuclog
[ number of unsuccessful login attempts to the account. It is reset
when a successful login to the account occurs.]
Lock...
2010 Aug 27
8
R.matlab package help
Hi,all
I have a problem running R.matlab package
(under 2.10.1 version). I can set up the matlab server under local
machine(run the MatlabServer.m), "
And I can use setVariable and evaluate matlab functions in R. But when I ask
Matlab to send the value back to R using getVariable function it
always returns an error:
"
??? Error: A MATLAB string constant is not
2008 Aug 21
0
kickstart error on 5.2 exception
...intf.ppw.ics.cw.rnv.opener.tempcache: None
intf.ppw.ics.cw.rnv.opener.auth_cache: {}
intf.ppw.ics.cw.rnv.opener.key_file: None
intf.ppw.ics.cw.rnv.opener.proxies: {}
intf.ppw.ics.cw.rnv.opener.type: file
intf.ppw.ics.cw.rnv.opener.maxtries: 10
intf.ppw.ics.cw.rnv.anaconda: Already dumped
intf.ppw.ics.cw.rnv.htmlheader: <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body bgcolor="white"><pre>
intf.ppw...
2006 Apr 12
1
powerd not behaving with an Asus A8V-MX and Athlon 64 X2 3800+
...net.inet.udp.log_in_vain: 0
net.inet.udp.blackhole: 0
net.inet.udp.strict_mcast_mship: 0
net.inet.raw.maxdgram: 8192
net.inet.raw.recvspace: 8192
net.inet.accf.unloadable: 0
net.link.generic.system.ifcount: 3
net.link.ether.inet.prune_intvl: 300
net.link.ether.inet.max_age: 1200
net.link.ether.inet.maxtries: 5
net.link.ether.inet.useloopback: 1
net.link.ether.inet.proxyall: 0
net.link.ether.inet.log_arp_wrong_iface: 1
net.link.ether.inet.log_arp_movements: 1
net.link.ether.inet.log_arp_permanent_modify: 1
net.link.ether.ipfw: 0
net.link.gif.max_nesting: 1
net.link.gif.parallel_tunnels: 0
net.link.log_...