From 87c8b116caa08f86437917f21f8fc58df74bfdcf Mon Sep 17 00:00:00 2001 From: Dmitriy Linikov Date: Tue, 20 Mar 2018 06:58:57 -0600 Subject: [PATCH] mm/iob/iob_copyin.c: Fixed problem with send() ret value when using nonblocking io over buffered tcp socket --- mm/iob/iob_copyin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/iob/iob_copyin.c b/mm/iob/iob_copyin.c index 5c1b8894e39..c8c46e2d2d5 100644 --- a/mm/iob/iob_copyin.c +++ b/mm/iob/iob_copyin.c @@ -1,7 +1,7 @@ /**************************************************************************** * mm/iob/iob_copyin.c * - * Copyright (C) 2014, 2016-2017 Gregory Nutt. All rights reserved. + * Copyright (C) 2014, 2016-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -264,7 +264,7 @@ int iob_trycopyin(FAR struct iob_s *iob, FAR const uint8_t *src, { if (iob_copyin_internal(iob, src, len, offset, throttled, false) == 0) { - return OK; + return len; } else {