X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Ft-server.cpp;h=b54058c3a28cec6914ba46f01d28a91fa96cdb51;hp=3a4acef6f5fed68ad6cfa752a489473594c8b218;hb=7b429cd9f6320f71b949f7e90270266b2f617c07;hpb=8dc6d0bc4ddbb2d37b3aafd93396a0e4a8e87560 diff --git a/src/t-server.cpp b/src/t-server.cpp index 3a4acef..b54058c 100644 --- a/src/t-server.cpp +++ b/src/t-server.cpp @@ -1,9 +1,20 @@ -/* - * Copyright (c) 2005, Index Data. - * See the file LICENSE for details. - * - * $Id: t-server.cpp,v 1.8 2006-03-29 13:33:47 adam Exp $ - */ +/* This file is part of YAZ proxy + Copyright (C) 1998-2009 Index Data + +YAZ proxy is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +YAZ proxy is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ #include #include @@ -17,6 +28,10 @@ #include #include +#if HAVE_UNISTD_H +#include +#endif + using namespace yazpp_1; class MyServer; @@ -64,7 +79,9 @@ IMsg_Thread *Auth_Msg::handle() ODR_MASK_SET(apdu->u.initResponse->options, Z_Options_present); break; case Z_APDU_searchRequest: +#if HAVE_UNISTD_H sleep(5); +#endif apdu = zget_APDU(odr, Z_APDU_searchResponse); break; case Z_APDU_triggerResourceControlRequest: