Commit 590f92b
committed
CCBC-1651: ensure that purged packets get their memory released
mcreq_pipeline_timeout() function assumes that the packets have to be flushed to network buffers, but in case of network being configured to drop packets, the libcouchbase does not invoke flush routines as it still trying to connect sockets, so the requests would timeout without ever having chance to be written to network. In result, all buffers that associated with such requests will not be deallocated until the lcb_destroy() will be invoked on the instance.
Change-Id: Iff19b5d84bd48a14a8bb8ae70e4ba311b21b79bf
Reviewed-on: https://review.couchbase.org/c/libcouchbase/+/218172
Reviewed-by: Michael Reiche <michael.reiche@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>1 parent d3013c8 commit 590f92b
1 file changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
966 | 966 | | |
967 | 967 | | |
968 | 968 | | |
969 | | - | |
| 969 | + | |
| 970 | + | |
970 | 971 | | |
971 | 972 | | |
972 | 973 | | |
| |||
1038 | 1039 | | |
1039 | 1040 | | |
1040 | 1041 | | |
| 1042 | + | |
1041 | 1043 | | |
1042 | 1044 | | |
1043 | 1045 | | |
| |||
1056 | 1058 | | |
1057 | 1059 | | |
1058 | 1060 | | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
1059 | 1077 | | |
1060 | 1078 | | |
1061 | 1079 | | |
| |||
0 commit comments