Skip to content
Snippets Groups Projects
Commit 509fdc1e authored by Julio Sánchez Fernández's avatar Julio Sánchez Fernández
Browse files

Deal with sb_trans_needs_read and sb_trans_needs_write

parent eeec88a8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment