my $mo = "$home/.mo";
my $root = $ENV{"MO_ROOT"} or die "Environment variable MO_ROOT not set\n";
my $self = {
- "Contest" => "CPSPC 2007",
- "Server" => "kamzice.ms.mff.cuni.cz:8888",
+ "Contest" => "CEOI 2007",
+ "Server" => "ceoi-gamma:8888",
"Key" => "$mo/key.pem", # Keys and certificates
"Cert" => "$mo/cert.pem",
"CACert" => "$mo/ca-cert.pem",
sub request($$) {
my ($self, $obj) = @_;
my $sk = $self->{"sk"};
- ## $SIG{'PIPE'} = 'ignore';
+ local $SIG{'PIPE'} = 'ignore';
$obj->write($sk);
print $sk "\n";
$sk->flush();
sub send_file($$$) {
my ($self, $fh, $size) = @_;
my $sk = $self->{"sk"};
+ local $SIG{'PIPE'} = 'ignore';
while ($size) {
my $l = ($size < 4096 ? $size : 4096);
my $buf = "";