------extPart_000_0027_01C5CE9E.B08BBE30
Content-Type: text/plain;
	format­´wed;
	charsetso-8859-1";
	reply-typeiginal
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.

------extPart_000_0027_01C5CE9E.B08BBE30
Content-Type: text/plain;
	format­´wed;
	nameews.txt";
	reply-typeiginal
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filenameews.txt"

Path: uni-berlin.de!fu-berlin.de!news.osn.de!diablo1-ffm.news.osn.de!noris.net!not-for-mail
From: snacktime <snacktime / gmail.com>
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="----=_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

------=_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=
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=
------extPart_000_0027_01C5CE9E.B08BBE30
Content-Type: text/plain;
	format­´wed;
	nameail.txt";
	reply-typeiginal
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filenameail.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: <ruby-talk-admin / ruby-lang.org>
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 <ruby-talk / ruby-lang.org>; 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 <ruby-talk / ruby-lang.org>;
	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 <ruby-talk / ruby-lang.org>; Wed, 12 Oct 2005 01:33:19 +0900 (JST)
Received: by qproxy.gmail.com with SMTP id o12so561722qba
        for <ruby-talk / ruby-lang.org>; 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 <snacktime / gmail.com>
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=<mailto:ruby-talk-ctl / ruby-lang.org?body=help>
X-Original-To: ruby-talk / ruby-lang.org
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
        b=K7+cPkpzL5QWK4+29i6ztVwOnb++3VnZvNZcC9awyTg+m96FsibqWkfYwzupSiT8S38D+CBb9Gj+wl+n7ZFg5iCOGVqmx+VjwwzevR/jPoKYj2PvyPmIX0QNNvN88/Dx+0QPJGe6FnQAdwi/7S9+c5zZy06akAwaCQs3v/KyVeY=
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=-2.3 required=7.0 tests=AWL,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=no version=3.0.3
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_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: <mailto:ruby-talk / ruby-lang.org>
List-Owner: <mailto:ruby-talk-admin / ruby-lang.org>
List-Help: <mailto:ruby-talk-ctl / ruby-lang.org?body=help>
List-Unsubscribe: <mailto:ruby-talk-ctl / ruby-lang.org?body=unsubscribe>

------=_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=
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=
..
> 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?

------=_Part_16171_24340037.1129048397466--


------extPart_000_0027_01C5CE9E.B08BBE30--