mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 02:03:04 +01:00
Commit the right inet.cpp and fix for CORE-966
This commit is contained in:
parent
217a7d8dbb
commit
d668ed78e6
@ -2,6 +2,11 @@
|
||||
* v2.1 Alpha 1
|
||||
**************
|
||||
|
||||
* Bugfix CORE-966
|
||||
Bug in socket binding for database event.
|
||||
Contributor(s):
|
||||
Paul Beach <pbeach at ibphoenix.com> and Dmitry Yemanov <dimitr at firebirdsql.org>
|
||||
|
||||
* More dependencies (unregistered)
|
||||
Fixed untracked collation dependencies in PSQL
|
||||
Contributor(s):
|
||||
|
@ -1522,9 +1522,14 @@ static rem_port* aux_request( rem_port* port, PACKET* packet)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int optval;
|
||||
setsockopt(n, SOL_SOCKET, SO_REUSEADDR,
|
||||
int optval = TRUE;
|
||||
int ret;
|
||||
ret = setsockopt(n, SOL_SOCKET, SO_REUSEADDR,
|
||||
(SCHAR *) &optval, sizeof(optval));
|
||||
if (ret == -1) {
|
||||
inet_error(port, "setsockopt REUSE", isc_net_event_listen_err, INET_ERRNO);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (bind(n, (struct sockaddr *) &address, sizeof(address)) < 0) {
|
||||
inet_error(port, "bind", isc_net_event_listen_err, INET_ERRNO);
|
||||
|
Loading…
Reference in New Issue
Block a user