From 975a630109864fdb17fe3ea17365be512213a45c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 1 Jul 2009 09:16:17 +0000 Subject: * fhandler.h (class fhandler_socket): Add class members and methods to store and retrieve the SO_RCVBUF and SO_SNDBUF sizes. * fhandler_socket.cc (fhandler_socket::dup): Duplicate new members. (fhandler_socket::send_internal): Check for SO_SNDBUF size and restrict send to 1 byte less per KB 823764. Leave loop immediately if WSASendMsg has been used. * net.cc (fdsock): Change comment again. Set buffer sizes to 65536. Store values in fhandler_socket. (cygwin_setsockopt): Store SO_RCVBUF and SO_SNDBUF sizes in fhandler_socket. (cygwin_sendto): Drop call to sig_dispatch_pending. (cygwin_recvfrom): Ditto. (cygwin_recvmsg): Ditto. (cygwin_sendmsg): Ditto. --- winsup/cygwin/fhandler.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'winsup/cygwin/fhandler.h') diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 425746f0b..51a68a090 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -445,6 +445,15 @@ class fhandler_socket: public fhandler_base int af_local_connect (); void af_local_set_sockpair_cred (); + private: + int _rmem; + int _wmem; + public: + int &rmem () { return _rmem; } + int &wmem () { return _wmem; } + void rmem (int nrmem) { _rmem = nrmem; } + void wmem (int nwmem) { _wmem = nwmem; } + private: char *sun_path; struct status_flags -- cgit v1.2.3