meduketto / iksemel

Automatically exported from code.google.com/p/iksemel
GNU Lesser General Public License v2.1
32 stars 25 forks source link

io_send doesn't report failure if remote server disconnects #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect with server.
2. Kill server.
3. libiksemel says that everything is ok.

What is the expected output? What do you see instead?
I expect information that remote server died, instead I don't see it.

What version of the product are you using? On what operating system?
1.2 on Ubuntu Hardy, but code in svn version of io_send is the same.

Please provide any additional information below.
Attached patch resolves this problem, and moreover sends all data which
have to be send, not only a part (it's not guaranted that send will send
all data, so it should be used in loop)

Original issue reported on code.google.com by sma...@gmail.com on 29 Aug 2008 at 2:21

Attachments:

GoogleCodeExporter commented 9 years ago
New send used in loop, also handles EAGAIN/EINTR signals.

Original comment by meduke...@gmail.com on 22 Jul 2009 at 12:10