From: Robert Klemme Date: 2005-10-12T03:06:53+09:00 Subject: [Gateway] Postings Mail -> News truncated ------=_NextPart_000_0027_01C5CE9E.B08BBE30 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Hi, I just wondered about a reply to a posting of mine that didn't seem to make sense. Only when looking at the mail side, I saw the full reply. The news version was truncated after the quote. I think I saw a similar phenomenon some days ago already but didn't check then. Any ideas? Kind regards robert PS: Both versions attached. ------=_NextPart_000_0027_01C5CE9E.B08BBE30 Content-Type: text/plain; format=flowed; name="news.txt"; reply-type=original Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="news.txt" Path: = uni-berlin.de!fu-berlin.de!news.osn.de!diablo1-ffm.news.osn.de!noris.net!= not-for-mail From: snacktime Newsgroups: comp.lang.ruby Subject: Re: event based model - best way to implement? Date: Wed, 12 Oct 2005 01:33:20 +0900 Lines: 13 Message-ID: = <1f060c4c0510110933r7992bfc4icc2a59d57cac6b89@mail.gmail.com> References: <1f060c4c0510110052u1cdda360o89bb4927d9e42d@mail.gmail.com> <3r1bd6Fhe0o6U1@individual.net> NNTP-Posting-Host: sinus.lauschmusik.de Content-Type: multipart/alternative; boundary=3D"----=3D_Part_16171_24340037.1129048397466" X-Trace: ork-un.noris.net 1129048435 10878 213.95.32.201 (11 Oct 2005 = 16:33:55 GMT) X-Complaints-To: news@noris.net NNTP-Posting-Date: Tue, 11 Oct 2005 16:33:55 +0000 (UTC) X-received-from: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at lauschmusik.de. If it is SPAM, it did not originate at lauschmusik.de. Please report the original sender, and not us. Thanks! Please see http://hypermetrics.com/rubyhacker/clrFAQ.html#tag24 to. In-Reply-To: <3r1bd6Fhe0o6U1@individual.net> X-ML-Name: ruby-talk X-Mail-Count: 160032 X-ruby-talk: = <1f060c4c0510110933r7992bfc4icc2a59d57cac6b89@mail.gmail.com> X-rubymirror: yes Xref: uni-berlin.de comp.lang.ruby:154800 ------=3D_Part_16171_24340037.1129048397466 Content-Type: text/plain; charset=3DISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > > > You architecture is not fully clear to me, but given the small about = of > sources and sinks I'd use a thread per source and either do the = processin=3D g > directly in that thread or push tasks down a queue. IMHO this is far > easier in this case than writing a select loop that does the = multiplexing=3D ------=_NextPart_000_0027_01C5CE9E.B08BBE30 Content-Type: text/plain; format=flowed; name="mail.txt"; reply-type=original Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="mail.txt" X-Gmail-Received: 38778572fcef34e4968322db89fdb03dd4e98892 Delivered-To: shortcutter@gmail.com Received: by 10.37.15.69 with SMTP id s69cs29311nzi; Tue, 11 Oct 2005 09:34:08 -0700 (PDT) Received: by 10.36.37.7 with SMTP id k7mr2247900nzk; Tue, 11 Oct 2005 09:34:08 -0700 (PDT) Return-Path: Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org = [210.163.138.100]) by mx.gmail.com with ESMTP id = 39si4817542nzk.2005.10.11.09.33.37; Tue, 11 Oct 2005 09:34:08 -0700 (PDT) Received-SPF: pass (gmail.com: best guess record for domain of = ruby-talk-admin@ruby-lang.org designates 210.163.138.100 as permitted = sender) DomainKey-Status: bad (test mode) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org = [127.0.0.1]) by beryllium.ruby-lang.org (Postfix) with ESMTP id F016233C50; Wed, 12 Oct 2005 01:33:26 +0900 (JST) Received: from localhost (beryllium.ruby-lang.org [127.0.0.1]) by beryllium.ruby-lang.org (Postfix) with ESMTP id 3750D33E26 for ; Wed, 12 Oct 2005 01:33:20 +0900 (JST) Received: from beryllium.ruby-lang.org ([127.0.0.1]) by localhost (beryllium.ruby-lang.org [127.0.0.1]) (amavisd-new, port = 10024) with ESMTP id 24040-10 for ; Wed, 12 Oct 2005 01:33:20 +0900 (JST) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.193]) by beryllium.ruby-lang.org (Postfix) with ESMTP id 8051633C50 for ; Wed, 12 Oct 2005 01:33:19 +0900 (JST) Received: by qproxy.gmail.com with SMTP id o12so561722qba for ; Tue, 11 Oct 2005 09:33:17 -0700 = (PDT) Received: by 10.65.40.18 with SMTP id s18mr3991026qbj; Tue, 11 Oct 2005 09:33:17 -0700 (PDT) Received: by 10.64.241.19 with HTTP; Tue, 11 Oct 2005 09:33:17 -0700 = (PDT) Delivered-To: ruby-talk@ruby-lang.org Date: Wed, 12 Oct 2005 01:33:20 +0900 Posted: Tue, 11 Oct 2005 09:33:17 -0700 From: snacktime Reply-To: ruby-talk@ruby-lang.org Subject: Re: event based model - best way to implement? To: ruby-talk@ruby-lang.org (ruby-talk ML) Message-Id: = <1f060c4c0510110933r7992bfc4icc2a59d57cac6b89@mail.gmail.com> In-Reply-To: <3r1bd6Fhe0o6U1@individual.net> References: <1f060c4c0510110052u1cdda360o89bb4927d9e42d@mail.gmail.com> <3r1bd6Fhe0o6U1@individual.net> X-ML-Name: ruby-talk X-Mail-Count: 160032 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only = members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-talk-ctl@ruby-lang.org; help=3D X-Original-To: ruby-talk@ruby-lang.org DomainKey-Signature: a=3Drsa-sha1; q=3Ddns; c=3Dnofws; s=3Dbeta; d=3Dgmail.com; = h=3Dreceived:message-id:date:from:to:subject:in-reply-to:mime-version:con= tent-type:references; = b=3DK7+cPkpzL5QWK4+29i6ztVwOnb++3VnZvNZcC9awyTg+m96FsibqWkfYwzupSiT8S38D+= CBb9Gj+wl+n7ZFg5iCOGVqmx+VjwwzevR/jPoKYj2PvyPmIX0QNNvN88/Dx+0QPJGe6FnQAdw= i/7S9+c5zZy06akAwaCQs3v/KyVeY=3D X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ruby-lang.org X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on beryllium.ruby-lang.org X-Spam-Level: X-Spam-Status: No, score=3D-2.3 required=3D7.0 tests=3DAWL,BAYES_00, CONTENT_TYPE_PRESENT,FAKEDWORD_ONE,FAKEDWORD_VERTICALLINE, FAKEDWORD_ZERO,HTML_20_30,HTML_MESSAGE,MIMEQENC,MULTIPART_ALTERNATIVE, QENCPTR1,QENCPTR2,RCVDFRMLOCALIP,RCVD_BY_IP autolearn=3Dno = version=3D3.0.3 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=3D"----=3D_Part_16171_24340037.1129048397466" Precedence: bulk Lines: 52 List-Id: ruby-talk.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: = ------=3D_Part_16171_24340037.1129048397466 Content-Type: text/plain; charset=3DISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > > > You architecture is not fully clear to me, but given the small about = of > sources and sinks I'd use a thread per source and either do the = processin=3D g > directly in that thread or push tasks down a queue. IMHO this is far > easier in this case than writing a select loop that does the = multiplexing=3D .. > Does that sound reasonable to you? It was late and my brain was tired.. My question really involved around = the best way to constantly read from a socket in ruby and at the same time = be able to detect when a client connects with data that needs to be written = to the socket. After looking around some more it looks like in the thread that holds = the connection to asterisk a simple loop combined with io/wait would work. = Any reason to use io/wait over select in a case like this? ------=3D_Part_16171_24340037.1129048397466-- ------=_NextPart_000_0027_01C5CE9E.B08BBE30--