Skip to content

Commit

Permalink
THRIFT-5416: Allow UDP Sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
bforbis authored and Jens-G committed Oct 18, 2021
1 parent 2145741 commit 50dd262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/perl/lib/Thrift/Socket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sub new
port => 9090,
recvTimeout => 10000,
sendTimeout => 10000,

proto => 'tcp',
handle => undef
};

Expand Down Expand Up @@ -260,7 +260,7 @@ sub __open
my $self = shift;
return IO::Socket::INET->new(PeerAddr => $self->{host},
PeerPort => $self->{port},
Proto => 'tcp',
Proto => $self->{proto},
Timeout => $self->{sendTimeout} / 1000);
}

Expand Down

0 comments on commit 50dd262

Please sign in to comment.