From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id A0BD3BBAF for ; Wed, 25 Mar 2009 13:37:46 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjIBANPByUlVnoqDkWdsb2JhbACBUJQcAQEBAQkLCgcRBaUkCiMClliDdQY X-IronPort-AV: E=Sophos;i="4.38,419,1233529200"; d="scan'208";a="24951381" Received: from mail186.messagelabs.com ([85.158.138.131]) by mail3-smtp-sop.national.inria.fr with SMTP; 25 Mar 2009 13:37:46 +0100 X-VirusChecked: Checked X-Env-Sender: christoph.bauer@lmsintl.com X-Msg-Ref: server-15.tower-186.messagelabs.com!1237984662!3950940!1 X-StarScan-Version: 6.0.0; banners=-,-,- X-Originating-IP: [213.68.136.230] Received: (qmail 10309 invoked from network); 25 Mar 2009 12:37:42 -0000 Received: from kaiserslautern1.lms-gmbh.de (HELO mail-in.lmsintl.com) (213.68.136.230) by server-15.tower-186.messagelabs.com with SMTP; 25 Mar 2009 12:37:42 -0000 Received: from KL-SRV57.lmsintl.com (unknown [10.2.100.57]) by mail-in.lmsintl.com (Postfix) with ESMTP id 851E243C005 for ; Wed, 25 Mar 2009 13:36:55 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: in_channel_of_descr questions Date: Wed, 25 Mar 2009 13:37:43 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: in_channel_of_descr questions Thread-Index: AcmtRn4BFnWPe/IXS4W7RLJhl7XSng== From: "Christoph Bauer" To: X-Spam: no; 0.00; sockets:01 sockets:01 unix:01 unix:01 descr:02 descr:02 christoph:04 christoph:04 channel:06 channel:06 function:08 approach:08 bauer:09 bauer:09 runs:11 Hello, I have some questions concerning in_channel_of_descr: my program has a list of sockets. I need the sockets itself for a select-Loop and an in_channel for the convenient input_line function. At the end, which one should i close? Just the socket, just the channel or both? On Windows I tried to create many in_channels, one for each block=20 I read. Then I get soon an "Too many open files in the system" error.=20 In win32unix/channels.c I see an _open_osfhandle() call for each=20 in_channel_of_descr. On unix the same program runs fine (as expected).=20 So is there a different approach needed for windows e.g. close just=20 the socket on unix, but close socket and in_channel on windows? (In any case I'll remove the repeated call of=20 in_channel_of_descr...). Thanks for help, Christoph Bauer