Non-blocking udp socket memory leak



hi
when i make udp socket to non-blocking with,
WSAIoctl(s, FIONBIO, &enable, sizeof(enable), NULL, 0, NULL, NULL, NULL)

the connection works fine. but when i close the socket it leaks memory. Looks this issue was a known bug in wince.net4.0
http://download.microsoft.com/download/8/0/5/8057bf64-419e-4836-969c-9d09bfd47c6c/WinCE%20.NET%204.0_Update_Readme_Update_ALL.htm

but i assume this was fixed with later versions. i am using winmobile6 which runs wince5; so it should be fine.

my goal is for non-blocking sendto(..).

any clue?

regards
-g

.



Relevant Pages

  • Re: NIO
    ... >> non-blocking, which means that it will return from your .writeright ... >> 1) establish a connection using a non-blocking socket connect ... > This is generally pointless unless you want to timeout the connection ... > selecting for it really ...
    (comp.lang.java.programmer)
  • Re: Socket Server... Why two?
    ... I hope you meant non-blocking way ... The accept just accepts a connection and returns as soon ... It is just an information to the application that now one more socket ... nothing to do without that data, you can do a blocking recv(). ...
    (comp.unix.programmer)
  • Re: Socket Server... Why two?
    ... I hope you meant non-blocking way ... The accept just accepts a connection and returns as soon ... It is just an information to the application that now one more socket ... nothing to do without that data, you can do a blocking recv(). ...
    (comp.unix.programmer)
  • Re: on the semantics of connect(): EINTR, EALREADY, EINPROGRESS
    ... assume fd is a file descriptor referring to a blocking, ... If the connection cannot be established ... the socket, connectshall block for up to an unspecified timeout ... Since it's then essentially a non-blocking connect, ...
    (comp.unix.programmer)
  • Re: extremely slow to ssh out from my machine
    ... That system call only creates a UDP socket (without giving it ... an address or doing any lookup - it just creates a "connection ... endpoint" on your machine, that later has to be explicitly ...
    (Debian-User)