| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 1 | Thrift Perl Software Library |
| 2 | |
| Bryan Duxbury | def30a6 | 2009-04-08 00:19:37 +0000 | [diff] [blame] | 3 | License |
| 4 | ======= |
| 5 | |
| 6 | Licensed to the Apache Software Foundation (ASF) under one |
| 7 | or more contributor license agreements. See the NOTICE file |
| 8 | distributed with this work for additional information |
| 9 | regarding copyright ownership. The ASF licenses this file |
| 10 | to you under the Apache License, Version 2.0 (the |
| 11 | "License"); you may not use this file except in compliance |
| 12 | with the License. You may obtain a copy of the License at |
| 13 | |
| 14 | http://www.apache.org/licenses/LICENSE-2.0 |
| 15 | |
| 16 | Unless required by applicable law or agreed to in writing, |
| 17 | software distributed under the License is distributed on an |
| 18 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 19 | KIND, either express or implied. See the License for the |
| 20 | specific language governing permissions and limitations |
| 21 | under the License. |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 22 | |
| James E. King, III | 96be8c8 | 2017-01-27 11:45:57 -0500 | [diff] [blame] | 23 | Summary |
| 24 | ======= |
| 25 | |
| 26 | Apache Thrift is a software framework for scalable cross-language services development. |
| 27 | It combines a software stack with a code generation engine to build services that work |
| 28 | efficiently and seamlessly between many programming languages. A language-neutral IDL |
| 29 | is used to generate functioning client libraries and server-side handling frameworks. |
| 30 | |
| 31 | For More Information |
| 32 | ==================== |
| 33 | |
| 34 | See the [Apache Thrift Web Site](http://thrift.apache.org/) for more information. |
| 35 | |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 36 | Using Thrift with Perl |
| James E. King, III | 96be8c8 | 2017-01-27 11:45:57 -0500 | [diff] [blame] | 37 | ====================== |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 38 | |
| 39 | Thrift requires Perl >= 5.6.0 |
| 40 | |
| Jim King | f5f1b35 | 2015-06-24 13:47:24 -0400 | [diff] [blame] | 41 | Unexpected exceptions in a service handler are converted to |
| 42 | TApplicationException with type INTERNAL ERROR and the string |
| 43 | of the exception is delivered as the message. |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 44 | |
| Jim King | f5f1b35 | 2015-06-24 13:47:24 -0400 | [diff] [blame] | 45 | On the client side, exceptions are thrown with die, so be sure |
| 46 | to wrap eval{} statments around any code that contains exceptions. |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 47 | |
| Jim King | f5f1b35 | 2015-06-24 13:47:24 -0400 | [diff] [blame] | 48 | Please see tutoral and test dirs for examples. |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 49 | |
| James E. King, III | 9019b28 | 2017-02-08 20:53:09 -0500 | [diff] [blame] | 50 | The Perl ForkingServer ignores SIGCHLD allowing the forks to be |
| 51 | reaped by the operating system naturally when they exit. This means |
| 52 | one cannot use a custom SIGCHLD handler in the consuming perl |
| 53 | implementation that calls serve(). It is acceptable to use |
| 54 | a custom SIGCHLD handler within a thrift handler implementation |
| 55 | as the ForkingServer resets the forked child process to use |
| 56 | default signal handling. |
| 57 | |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 58 | Dependencies |
| 59 | ============ |
| 60 | |
| Jim King | f5f1b35 | 2015-06-24 13:47:24 -0400 | [diff] [blame] | 61 | Bit::Vector - comes with modern perl installations. |
| Mark Slee | 8266443 | 2007-09-19 06:49:30 +0000 | [diff] [blame] | 62 | Class::Accessor |
| Jim King | f5f1b35 | 2015-06-24 13:47:24 -0400 | [diff] [blame] | 63 | IO::Socket::INET - comes with modern perl installations. |
| 64 | IO::Socket::SSL - required if using SSL/TLS. |
| 65 | NET::SSLeay |
| 66 | Crypt::SSLeay - for make cross |