Skip to content

Commit fd96574

Browse files
committed
Revert "net: context: Check if conn_handler exists when binding"
This reverts commit da5c7b6. This patch has been causing issues with tcp clients, especially ZEP-1894 Change-Id: I46ceb71ef81a69cc4ffbbfe60e5dd54c0f59f43c Signed-off-by: Anas Nashif <[email protected]>
1 parent f2a60a4 commit fd96574

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

subsys/net/ip/net_context.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -443,16 +443,6 @@ int net_context_bind(struct net_context *context, const struct sockaddr *addr,
443443
NET_ASSERT(addr);
444444
NET_ASSERT(PART_OF_ARRAY(contexts, context));
445445

446-
/* If we already have connection handler, then it effectively
447-
* means that it's already bound to an interface/port, and we
448-
* don't support rebinding connection to new address/port in
449-
* the code below.
450-
* TODO: Support rebinding.
451-
*/
452-
if (context->conn_handler) {
453-
return -EISCONN;
454-
}
455-
456446
#if defined(CONFIG_NET_IPV6)
457447
if (addr->family == AF_INET6) {
458448
struct net_if *iface = NULL;

0 commit comments

Comments
 (0)