Commit 1329c39
Make client process all buffered reads on write failure
Summary: When connection is reset by server it's possible for a write to fail before the read callback is called. Make sure we still try to process all the data that was received before closing the socket.
Reviewed By: rhodo
Differential Revision: D19851139
fbshipit-source-id: af50b939ccd7f25384e48bcf29b4892a23c2ef831 parent f395768 commit 1329c39
2 files changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2747 | 2747 | | |
2748 | 2748 | | |
2749 | 2749 | | |
2750 | | - | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
2751 | 2753 | | |
2752 | 2754 | | |
2753 | 2755 | | |
2754 | 2756 | | |
2755 | 2757 | | |
2756 | | - | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
2757 | 2761 | | |
2758 | 2762 | | |
2759 | 2763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
908 | 915 | | |
909 | 916 | | |
910 | 917 | | |
| |||
1349 | 1356 | | |
1350 | 1357 | | |
1351 | 1358 | | |
| 1359 | + | |
| 1360 | + | |
1352 | 1361 | | |
1353 | 1362 | | |
1354 | 1363 | | |
| |||
0 commit comments