[CDRIVER-770] Continue writing until all bytes have been written Created: 30/Jul/15 Updated: 19/Oct/16 Resolved: 28/Sep/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc, network |
| Affects Version/s: | None |
| Fix Version/s: | 1.2-rc0, 1.1.11 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Hannes Magnusson | Assignee: | Hannes Magnusson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
In writev_full() we should loop until r == total_bytes, rather then fail right away. Unless r <= 0 we should resume writing from the r position, so advancing the iovec and quick dancing would be needed. The expiration also need to be confirmed – if now() is > expire then abort and fail. |
| Comments |
| Comment by Githook User [ 31/Aug/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: When we can't finish writing our entire buffered iovec, we must still |
| Comment by Githook User [ 31/Aug/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |