[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] Write quirks in default eventbuffer implementation?
- To: libevent-users@xxxxxxxxxxxxx
- Subject: Re: [Libevent-users] Write quirks in default eventbuffer implementation?
- From: Nick Mathewson <nickm@xxxxxxxxxxxxx>
- Date: Mon, 13 Sep 2010 02:24:04 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 13 Sep 2010 02:24:10 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=trOLQVd4RTcTmNL5EN0nrCTvlLGdQld7Lhnw5SzGDNA=; b=jo4Gl1YdTJ+2CCPgZUt8m/eoWeR+Jw4J+vkz0qPWlpXQ5tEzNkgLLyHyJdz+TFyi/A +jp3gDbAH2nc4S8Q368NILHypRqUYrfWtG2eRQVfI7F2y8rShj+WC84H0wGcHMvp8KQJ ZOiz/QXv7dZyYUjlP5fod9OED1FIBGD7nHWAA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=nhI8B3oQlMO3hZcqHqciMFdUx+AKVNrmWG2mpN1JTUJUn9pccmc2OToJaW7vm1P18T 6lUj1MbiWFrdV62tVCuyh881Pzgw2DmBq56jlLjATCGwUJtY7WpPNBth7qLDPisUzkNY 1RsDPtU2A6SsZFFr+lSeZ/RthvhAi8ikousME=
- In-reply-to: <399ED69E856B41FFA838C253FA11DA49@Office>
- References: <399ED69E856B41FFA838C253FA11DA49@Office>
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
On Thu, Sep 9, 2010 at 3:09 PM, Kelly Brock <Kerby@xxxxxxxxxxx> wrote:
[...]
> So, anyway, it is at the challenge point where I'm getting a little
> problem with my initial test. I grab the output evbuffer from event buffer
> for the socket and then reserve/write/commit space into the evbuffer. I
> then set the EV_WRITE event. At which point write does not happen until
> some other event happens. Since the client is patiently waiting for the
> server to challenge it, this means nothing ever happens. I added a
> persistent timer to the event base and now the write happens when the timer
> triggers.
>
> Now, to somewhat prove that I'm not just doing something bad, the
> same code under OsX and Linux seems to function as expected and the data
> gets written immediately without needing the extra timer code. I'm just
> guessing but maybe the select (I believe?) based version is not working
> correctly in this case?
That does sound like a bug, if I'm understanding you right. If you
get the same issue with 2.0.7-rc, could you maybe open a ticket on
the bugtracker [1]? I'd like to get this tracked down.
[1] https://sourceforge.net/tracker/?group_id=50884&atid=461322
--
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.