This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
XDMCP to WindowMaker on FreeBSD exhausts winsock buffer space
- To: <cygwin-xfree at cygwin dot com>
- Subject: XDMCP to WindowMaker on FreeBSD exhausts winsock buffer space
- From: "David Vitek" <dpv3 at cornell dot edu>
- Date: Sun, 9 Sep 2001 23:27:39 -0400
Here's the situation:
I start up XWin either through cmd.exe or cygwin's prompt under Win2k.
I use this command line:
XWin -fullscreen -ac -query <remote host> -from <me>
My remote host is running FreeBSD and window manager WindowMaker.
And it happily connects and I log in and start WindowMaker. Everything
is great and I am happy (and quite impressed that this works). I start
using applications.
After doing anything for 15 - 30 minutes in windowmaker (which works great
until this point) everything suddenly closes and it goes back to the grey
screen. I hit alt tab and go back to the windows desktop. I notice I
can't connect to anything with any application even after killing all
cygwin / xfree86 processes.
So here's the details of what's going on even after killing XFree86 and
CygWin:
Any program that tries to create a socket fails. For example, calling
socket(AF_INET,SOCK_STREAM,IPPROTO_IP) will always return SOCKET_ERROR.
Then calling WSAGetLastError() returns WSAENOBUFS. According to Microsoft's
Platform SDK this means "No buffer space is available. The socket cannot be
created."
I don't know precisely which (socket?) APIs use this "buffer space" but
apparently
it isn't being released by XFree86 or Cygwin and it isn't being reclaimed by
Win2k
after I kill everything I can. Rebooting the computer is the only fix I've
found.
I've been able to reproduce this three times (I've tried only three times).
Has anyone else seen this? Am I doing something stupid? Which module(s)
might this problem be rooted in? If nobody else wants to look into this, I
might.
David Vitek
dpv3@cornell.edu