Hi! You need a server to test it.
The code sends some "buy-buy" message AND closes the connection immediately. Linger(true, 5) gives the socket 5 seconds (aeons on WiFi) to send the data. The test fails, if no "buy-buy" data is received on server. That happens 1 time out of 3. If my description is not enough, I can hack a test case. Best Regards Stas -----Original Message----- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pryor Sent: Mittwoch, 29. August 2012 17:05 To: Discussions related to Mono for Android Subject: Re: [mono-android] Linger no effect On Aug 29, 2012, at 8:52 AM, tsukrov <tsuk...@chessbase.com> wrote: > Can lingering be broken? Looks like it; I read the code, and it looks broken to me: https://bugzilla.xamarin.com/show_bug.cgi?id=6737 Would it be possible for you to create a small test case for Socket.Close(int) and `socket.LingerState = new LingerOption(true, 5)`? I'm not entirely sure what the semantics should be, or how to properly test them. Thanks, - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________________________ ChessBase Schachprogramme Schachdatenbank Verlagsgesellschaft mbH Sitz der Gesellschaft: Osterbekstraße 90a - 22083 Hamburg Telefon: 040-63 90 60 0 - Fax: 040 630 12 82 GF: Matthias Wüllenweber und Rainer Woisin HR Amtsgericht Hamburg HRB 40336 UST-ID-Nr. DE 118644875 Finanzamt Hamburg-Nord - St.-Nr. 49/711/00031 _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid