|
From: | Jens Nielsen |
Subject: | [lwip-devel] [bug #45135] getsockopt SO_SNDTIMEO, SO_RCVTIMEO broken |
Date: | Mon, 18 May 2015 20:05:35 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 |
URL: <http://savannah.nongnu.org/bugs/?45135> Summary: getsockopt SO_SNDTIMEO, SO_RCVTIMEO broken Project: lwIP - A Lightweight TCP/IP stack Submitted by: deft Submitted on: mån 18 maj 2015 20.05.33 Category: sockets/netconn Severity: 3 - Normal Item Group: Faulty Behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: lwIP version: git head _______________________________________________________ Details: Tiny but quite significant bug, tv_sec is set to the value that should go into tv_usec Just change ((struct timeval *)(optval))->tv_sec = ((loc) % 1000U) * 1000U; }while(0) into ((struct timeval *)(optval))->tv_usec = ((loc) % 1000U) * 1000U; }while(0) or apply patch _______________________________________________________ File Attachments: ------------------------------------------------------- Date: mån 18 maj 2015 20.05.33 Name: getsockopt.patch Size: 674 B By: deft <http://savannah.nongnu.org/bugs/download.php?file_id=34048> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?45135> _______________________________________________ Meddelandet skickades via/av Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |