On 17 Feb 2000, Niels Möller wrote:
> > P.ss.: Ending a deflating (and not inflating!) zlib_instance in the
> > server causes to return -3 (Z_DATA_ERROR) by deflateEnd.
> Hmm. This happens when the connection is closed, and the z_stream is
> deallocated? It might be possible to use Z_FULL_FLUSH when writing the
> SSH_MSG_DISCONNECT message, but I'm not sure it is worth the effort.
> Does ssh2 do that?
If it isn't worth the effort, then we should eliminate the error
message... :)

> > P.sss.: What about (verbose) writing some stats in do_free_zstream?
> > Eg. total_in, total_out and whether it was deflating or inflating?
> I have considered adding some kind of statistics object to the
> connection. I'm not sure do_free_zstream (which is only called by the
> gc) is the right place to print user friendly messages.
Oh yes... It's not the best place, as exiting from the client doesn't call
the garbage collector... (I think it's not a nice practice... ;)

Greets,
Keresztg

+ Keresztfalvi Gabor
+ Student of the Budapest University of Technology and Economics 
+ mailto: [EMAIL PROTECTED]  [EMAIL PROTECTED]
+ http://www.sch.bme.hu/~keresztg/

Reply via email to