Re: I/O in Nailgun

2009-07-07 Thread Phil Hagelberg
George Jahad writes: > Hmmm. I'm seeing different behaviour. When I run your code > untouched, I never get the "unchunked" error. Instead, I see a bunch > of garbage printed after the echoed "hello" like so: > > echo "hello" | ng nailgun.Example > > hello > ^...@^@^...@^@^...@^@^...@^@^...@^@

Re: I/O in Nailgun

2009-07-07 Thread George Jahad
Hmmm. I'm seeing different behaviour. When I run your code untouched, I never get the "unchunked" error. Instead, I see a bunch of garbage printed after the echoed "hello" like so: echo "hello" | ng nailgun.Example hello ^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^

Re: I/O in Nailgun

2009-07-07 Thread Phil Hagelberg
George Jahad writes: > I think it is just an input stream encoding problem. I think if you > change this line: > (copy (-> context .in) out) > > to this: > (copy (-> context .in InputStreamReader.) out) > > it will work. Thanks, but that gives the same result. =\ Contributing to the p

Re: I/O in Nailgun

2009-07-06 Thread George Jahad
Hey Phil: I think it is just an input stream encoding problem. I think if you change this line: (copy (-> context .in) out) to this: (copy (-> context .in InputStreamReader.) out) it will work. George On Jul 6, 5:06 pm, Phil Hagelberg wrote: > So a common counter to "the VM startup

I/O in Nailgun

2009-07-06 Thread Phil Hagelberg
So a common counter to "the VM startup time is so bad" problem is to use Nailgun for a long-running server process. I've gotten this working in some respects, but I get a "Unexpected chunk type 83 ('S')" error quite often when I'm trying to read from the stdin that the nailgun context provides.