Date: Fri, 1 Aug 2014 11:50:44 -0400 From: Phil Shafer <phil@juniper.net> To: "Simon J. Gerraty" <sjg@juniper.net> Cc: arch@freebsd.org, Poul-Henning Kamp <phk@phk.freebsd.dk>, marcel@freebsd.org, John-Mark Gurney <jmg@funkthat.com> Subject: Re: XML Output: libxo - provide single API to output TXT, XML, JSON and HTML Message-ID: <201408011550.s71FoiQo003612@idle.juniper.net> In-Reply-To: <20140801050434.82C9E580A2@chaos.jnpr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"Simon J. Gerraty" writes: >Of course I wouldn't be surprised if the lib already handles all that ;-) No, I can't manufacture memory on the fly ;^) Hmmm... I could have an emergency mode where I stop trying to buffer and churn out a series of small write() calls to send close tags. Or perhaps just punting and refusing to write more once ENOMEM is seen is the right thing. Seeing broken output is better than limping along with output that looks right but isn't. Thanks, Phil
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408011550.s71FoiQo003612>