thrift/lib/perl
2017-02-20 08:52:11 -05:00
..
lib THRIFT-4084: Add a SSL/TLS negotiation check to crossfeature to verify SSLv3 is not active and that at least one of TLSv1.0 through 1.2 are accepted. 2017-02-20 08:52:11 -05:00
test THRIFT-3731 Perl multiplex test is flaky 2016-03-10 11:34:49 +09:00
build-cpan-dist.sh THRIFT-3550 make a script to build perl cpan module and update perl dependencies for cpan 2017-01-27 09:43:18 -05:00
coding_standards.md THRIFT-3148 Markdown links to coding_standards are dead 2015-05-13 21:40:26 +02:00
Makefile.am Add make dist entires for THRIFT-3402 2016-03-19 22:31:40 +09:00
Makefile.PL THRIFT-3550 make a script to build perl cpan module and update perl dependencies for cpan 2017-01-27 09:43:18 -05:00
README.md THRIFT-4065 fix SIGCHLD handling for perl ForkingServer and document restrictions 2017-02-08 20:53:09 -05:00
test.pl THRIFT-387. Add license headers to a bunch of files 2009-03-30 21:35:00 +00:00

Thrift Perl Software Library

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Summary

Apache Thrift is a software framework for scalable cross-language services development. It combines a software stack with a code generation engine to build services that work efficiently and seamlessly between many programming languages. A language-neutral IDL is used to generate functioning client libraries and server-side handling frameworks.

For More Information

See the Apache Thrift Web Site for more information.

Using Thrift with Perl

Thrift requires Perl >= 5.6.0

Unexpected exceptions in a service handler are converted to TApplicationException with type INTERNAL ERROR and the string of the exception is delivered as the message.

On the client side, exceptions are thrown with die, so be sure to wrap eval{} statments around any code that contains exceptions.

Please see tutoral and test dirs for examples.

The Perl ForkingServer ignores SIGCHLD allowing the forks to be reaped by the operating system naturally when they exit. This means one cannot use a custom SIGCHLD handler in the consuming perl implementation that calls serve(). It is acceptable to use a custom SIGCHLD handler within a thrift handler implementation as the ForkingServer resets the forked child process to use default signal handling.

Dependencies

Bit::Vector - comes with modern perl installations. Class::Accessor IO::Socket::INET - comes with modern perl installations. IO::Socket::SSL - required if using SSL/TLS. NET::SSLeay Crypt::SSLeay - for make cross