diff options
author | trociny <trociny@FreeBSD.org> | 2011-06-17 07:07:26 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2011-06-17 07:07:26 +0000 |
commit | a262e24ff4cc1d41e01cbf14b859f5e0b541db03 (patch) | |
tree | a329b8b3a0336533b3415843ff12b9932c959bd8 /sbin/hastd/secondary.c | |
parent | 3bd2da3f30b7c9865079a72a9f38e2cd572feffd (diff) | |
download | FreeBSD-src-a262e24ff4cc1d41e01cbf14b859f5e0b541db03.zip FreeBSD-src-a262e24ff4cc1d41e01cbf14b859f5e0b541db03.tar.gz |
In HAST we use two sockets - one for only sending the data and one for
only receiving the data. In r220271 the unused directions were
disabled using shutdown(2).
Unfortunately, this broke automatic receive buffer sizing, which
currently works only for connections in ETASBLISHED state. It was a
root cause of the issue reported by users, when connection between
primary and secondary could get stuck.
Disable the code introduced in r220271 until the issue with automatic
buffer sizing is not resolved.
Reported by: Daniel Kalchev <daniel@digsys.bg>, danger, sobomax
Tested by: Daniel Kalchev <daniel@digsys.bg>, danger
Approved by: pjd (mentor)
MFC after: 1 week
Diffstat (limited to 'sbin/hastd/secondary.c')
-rw-r--r-- | sbin/hastd/secondary.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c index 1597af8..7120d3d 100644 --- a/sbin/hastd/secondary.c +++ b/sbin/hastd/secondary.c @@ -183,9 +183,11 @@ init_remote(struct hast_resource *res, struct nv *nvin) unsigned char *map; size_t mapsize; +#ifdef notyet /* Setup direction. */ if (proto_send(res->hr_remoteout, NULL, 0) == -1) pjdlog_errno(LOG_WARNING, "Unable to set connection direction"); +#endif map = NULL; mapsize = 0; @@ -351,9 +353,11 @@ init_remote(struct hast_resource *res, struct nv *nvin) if (map != NULL) free(map); nv_free(nvout); +#ifdef notyet /* Setup direction. */ if (proto_recv(res->hr_remotein, NULL, 0) == -1) pjdlog_errno(LOG_WARNING, "Unable to set connection direction"); +#endif if (res->hr_secondary_localcnt > res->hr_primary_remotecnt && res->hr_primary_localcnt > res->hr_secondary_remotecnt) { /* Exit on split-brain. */ |