From 509fdc1e6d98319e8f85480e7d493a3184504af6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Tue, 13 Jul 1999 19:40:10 +0000 Subject: [PATCH] Deal with sb_trans_needs_read and sb_trans_needs_write --- libraries/liblber/sockbuf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libraries/liblber/sockbuf.c b/libraries/liblber/sockbuf.c index 37b796bc72..123692deda 100644 --- a/libraries/liblber/sockbuf.c +++ b/libraries/liblber/sockbuf.c @@ -711,8 +711,10 @@ int ber_pvt_sb_init( Sockbuf *sb ) #ifdef USE_SASL sb->sb_sec_ready = 0; #endif - sb->sb_read_ahead = 0; + sb->sb_read_ahead = 1; /* test */ sb->sb_non_block = 0; + sb->sb_trans_needs_read = 0; + sb->sb_trans_needs_write = 0; sb->sb_fd = -1; sb->sb_iodata = NULL; sb->sb_io = &sb_IO_None; @@ -841,7 +843,9 @@ int ber_pvt_sb_clear_io( Sockbuf *sb ) sb->sb_io = &sb_IO_None; sb->sb_trans_ready = 0; - + sb->sb_trans_needs_read = 0; + sb->sb_trans_needs_write = 0; + return 0; } -- 2.39.5