minor fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11951 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e53d9d1394
commit
28354c529c
@ -46,9 +46,9 @@ sub dodiscover {
|
||||
my $sysctl;
|
||||
open ($sysctl,"<","/proc/sys/net/core/rmem_max");
|
||||
my $maxrcvbuf=<$sysctl>;
|
||||
my $rcvbuf = $socket->sockopt(SO_RCVBUF);
|
||||
my $rcvbuf = $args{'socket'}->sockopt(SO_RCVBUF);
|
||||
if ($maxrcvbuf > $rcvbuf) {
|
||||
$socket->sockopt(SO_RCVBUF,$maxrcvbuf/2);
|
||||
$args{'socket'}->sockopt(SO_RCVBUF,$maxrcvbuf/2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user