Re: what should I do if I got "Stream has outstanding operation" error.



2017-03-02 2:29 GMT+08:00 KC <kcc1967 gmail com>:

Hi,

I use g_output_stream_printf() to send command to a server
and use g_data_input_stream_read_line() to read data back.

Sometime I got error message "Stream has outstanding operation".
What should I do if I detect this error ?
Do I need to flush() the IO stream after g_output_stream_printf() ?


I believe I solved the issue.  My app is multi-thread app.  Lock/unlock
around I/O commands solved the problem.


KC



Thanks
KC



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]