ChangeLog 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. 2006-06-30 Gonzalo Paniagua Javier <[email protected]>
  2. * Socket.cs: patch from Sanghyeon Seo that implements
  3. (Send|Receive)Timeout for 2.0.
  4. * MulticastOption.cs: more 2.0 stuff.
  5. 2006-06-28 Atsushi Enomoto <[email protected]>
  6. * Socket.cs : use ConfigurationManager.GetSection() under NET_2_0.
  7. Also make sure to avoid NRE.
  8. 2006-06-24 Zoltan Varga <[email protected]>
  9. * Socket.cs: Add stubs for net 2.0 SendTimeout and ReceiveTimeout properties.
  10. 2006-06-20 Zoltan Varga <[email protected]>
  11. * ProtocolType.cs SocketOptionName.cs: Add missing net 2.0 fields.
  12. 2006-05-30 Gert Driesen <[email protected]>
  13. * NetworkStream.cs: Marked Dispose (bool) virtual on 1.x profile.
  14. 2006-04-10 Gonzalo Paniagua Javier <[email protected]>
  15. * Socket.cs:
  16. * SocketError.cs: implemented Reseive/Send overloads that do not throw
  17. in case of error. Patch by Tomi Valkeinen.
  18. 2006-03-11 Miguel de Icaza <[email protected]>
  19. * NetworkStream.cs (Dispose): Use the right signature depending on
  20. the profile being built.
  21. 2006-03-09 Gonzalo Paniagua Javier <[email protected]>
  22. * Socket.cs: pass something not empty to the unixep ctor.
  23. 2006-03-03 Dick Porter <[email protected]>
  24. * UdpClient.cs: Fix IPv6 family check. Fixes bug 77689.
  25. 2006-02-23 Gonzalo Paniagua Javier <[email protected]>
  26. * TcpClient.cs: when the socket is not connected, don't try to set the
  27. socket options, as they are ignored on linux. Wait until Connect
  28. succeeds and then apply the options.
  29. 2006-02-03 Gonzalo Paniagua Javier <[email protected]>
  30. * Socket.cs: added a missing overload for SetSocketOption.
  31. 2006-01-19 Gonzalo Paniagua Javier <[email protected]>
  32. * Socket.cs: use the 2.0 configuration classes when checking for IPv6
  33. support.
  34. 2006-01-04 Sebastien Pouliot <[email protected]>
  35. * TcpClient.cs: The Client property is public in 2.0 while it was
  36. protected in earlier release. Fix bug #77048.
  37. 2005-12-07 Robert Jordan <[email protected]>
  38. * SocketError.cs: Added.
  39. * SocketException: Implemented SocketErrorCode. Fixes bug #76915.
  40. 2005-10-11 Dick Porter <[email protected]>
  41. * Socket.cs: Don't call connect(2) twice for non-blocking sockets,
  42. it breaks on macos (and probably other bsd-based stacks too,) use
  43. poll() and getsockopt() to check if it worked.
  44. 2005-09-27 Gonzalo Paniagua Javier <[email protected]>
  45. * Socket.cs: add checks for 'disposed' all over. Fixes bug #76249.
  46. 2005-06-07 Gonzalo Paniagua Javier <[email protected]>
  47. * TcpClient.cs: patch by Hans Kratz that uses an integer when setting
  48. NoDelay instead of a bool, which is only handled in 2.0.
  49. 2005-06-04 Gonzalo Paniagua Javier <[email protected]>
  50. * Socket.cs: disallow connecting to .Any addresses. Fixes bug #75154.
  51. 2005-06-01 Gonzalo Paniagua Javier <[email protected]>
  52. * Socket.cs: adapted Select to the new Select_internal that uses poll()
  53. instead of select(). Managed part of the fix for bug #71203.
  54. 2005-05-23 Gonzalo Paniagua Javier <[email protected]>
  55. * Socket.cs: apply the same hack on blocking Connect calls as the one
  56. used in Accept.
  57. 2005-05-07 Gonzalo Paniagua Javier <[email protected]>
  58. * Socket.cs: see bug #74842, which is fixed with this patch for details
  59. and test cases on the blocking behavior of accept() when close() is
  60. called from another thread. The solution applied is to Abort the thread
  61. that is blocking in Accept_internal() when someone calls Close (), then
  62. reset the abort state if the socket is disposed and return the same
  63. error as MS (10004 - interrupted).
  64. 2005-05-06 Gonzalo Paniagua Javier <[email protected]>
  65. * Socket.cs: match MS behavior on SetSocketOption with a boolean
  66. argument. MS 1.1 throws an ArgumentException, but 2.0 turns true/false
  67. into 1/0 and works fine. Fixes bug #71753. Added checks for disposed
  68. in the 3 SetSocketOption.
  69. 2005-05-03 Gonzalo Paniagua Javier <[email protected]>
  70. * Socket.cs: if there are outstanding aio requests and one of them gets
  71. an ObjectDisposedException, throw the same exception for the rest.
  72. 2005-05-02 Gonzalo Paniagua Javier <[email protected]>
  73. * Socket.cs: removed hack added to fix bug #53229 (more than a year ago)
  74. that kept sockets opened until all AIO operations where finished. If
  75. the socket is closed, Receive returns 0 in EndReceive, the rest throw
  76. the ObjectDisposedException. Set the socket handle to -1 when closing.
  77. 2005-04-18 Gonzalo Paniagua Javier <[email protected]>
  78. * Socket.cs: Begin/End Send/SendTo guarantee that all bytes are written
  79. or an exception is thrown. Fixes bug #74475.
  80. 2005-04-17 Gonzalo Paniagua Javier <[email protected]>
  81. * Socket.cs: no need for locking in Worker. The actual read / write for
  82. Receive / Send is performed in the runtime time.
  83. 2005-04-15 Gonzalo Paniagua Javier <[email protected]>
  84. * Socket.cs: added a 'blocking' field that is passed to the runtime.
  85. 2005-04-09 Gonzalo Paniagua Javier <[email protected]>
  86. * Socket.cs: invoke the callback after scheduling the next request for
  87. the socket. Fixes bug #74539.
  88. 2005-04-08 Gonzalo Paniagua Javier <[email protected]>
  89. * Socket.cs: update socket connected status in an async request finishes
  90. synchronously. Use 'callback' instead of 'real_callback' field, which is
  91. now unused.
  92. 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
  93. * Socket.cs: added SocketOperation enum and 2 new fields to
  94. SocketAsyncResult that are used by the runtime. Asynchronous read/write
  95. are serialized so that only 1 of each kind is really 'active'.
  96. Handle non-blocking connects in BeginConnect instead of doing 2 Poll()
  97. in the threadpool.
  98. * NetworkStream.cs: better message for the exception.
  99. 2005-04-04 Gonzalo Paniagua Javier <[email protected]>
  100. * Socket.cs: remove unused async IO code.
  101. 2005-03-01 Gonzalo Paniagua Javier <[email protected]>
  102. * Socket.cs: don't Poll/block in Connect aither.
  103. 2005-02-28 Gonzalo Paniagua Javier <[email protected]>
  104. * Socket.cs: don't block on Accept if the socket is non-blocking.
  105. Fixes bug #73053. Patch by Ankit Jain.
  106. 2005-02-23 Dick Porter <[email protected]>
  107. * UdpClient.cs: Set the Broadcast option, as apparently the MS
  108. runtime defaults make UDP sockets broadcastable.
  109. 2004-12-28 Gonzalo Paniagua Javier <[email protected]>
  110. * Socket.cs: for Receive*/Send*, don't set the connected status to false
  111. when the error is EINPROGRESS or EWOULDBLOCK.
  112. 2004-12-03 Gonzalo Paniagua Javier <[email protected]>
  113. * NetworkStream.cs: Write should ensure that writes all the contents
  114. of the buffer. Fixes bug #70123. Besos para Miguelito.
  115. 2004-10-14 Dick Porter <[email protected]>
  116. * Socket.cs (Sockets ): Set Accept()ed socket blocking status to
  117. be the same as the listening socket. This follows MS behaviour.
  118. 2004-08-04 Dick Porter <[email protected]>
  119. * Socket.cs: Update Connected state in Select and Poll; this is
  120. when we find out that non-blocking Connects succeed. Fixes bug
  121. 62398.
  122. 2004-07-28 Dick Porter <[email protected]>
  123. * Socket.cs: ReceiveFrom might not return a valid EndPoint. Patch
  124. by Nick Vaughan ([email protected]), fixes bug 61608.
  125. 2004-07-15 Dick Porter <[email protected]>
  126. * Socket.cs: Don't try and dereference a null array in Select()
  127. (possible if a descriptor list of length 0 was passed.) Patch by
  128. Nick Vaughan ([email protected]), fixes bug 61595.
  129. 2004-07-12 Gonzalo Paniagua Javier <[email protected]>
  130. * Socket.cs: if'ed RemoveReferences calls.
  131. 2004-07-09 Dick Porter <[email protected]>
  132. * Socket.cs: Slight tweak to allow unknown objects to be returned
  133. by GetSocketOption().
  134. 2004-06-28 Gonzalo Paniagua Javier <[email protected]>
  135. * Socket.cs: connect on non-blocking sockets returns EINPROGRESS. Fixes
  136. bug #60811.
  137. 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
  138. * Socket.cs: wrong error code in connect and accept. EWOULDBLOCK is
  139. 10035. Fixes bug #60563.
  140. 2004-06-20 Gonzalo Paniagua Javier <[email protected]>
  141. * Socket.cs: fixed Accept for non-blocking sockets.
  142. 2004-06-10 Gert Driesen <[email protected]>
  143. * LingerOption.cs: marked field private to fix API signature
  144. * MulticastOption.cs: marked field private to fix API signature
  145. 2004-06-05 Gonzalo Paniagua Javier <[email protected]>
  146. * Socket.cs: throw ArgumentNullException if all the list are null OR
  147. empty. Fixes bug #59632.
  148. 2004-05-21 Patrik Torstensson <[email protected]>
  149. * TcpListener.cs: Fixes a lot of the problems with remoting nunit tests.
  150. (AcceptTcpClient): Don't create TcpClient before a
  151. connection is accepted.
  152. (LocalEndPoint): Use Server LocalEndPoint if connected
  153. otherwise use endpoint from ctor.
  154. (Init): Save end point, not server endpoint. This did
  155. cause TcpListener to ignore port sent via constructor.
  156. (Pending): Fixed wait time (method should return directly)
  157. (Start): Moved Bind here instead of Init method; old method
  158. caused us to bind ports even if the listener was stopped.
  159. (Stop): Null server when stopping
  160. 2004-05-13 Dick Porter <[email protected]>
  161. * UdpClient.cs:
  162. * TcpClient.cs: Public API fixes
  163. 2004-05-07 Gonzalo Paniagua Javier <[email protected]>
  164. * Socket.cs: fixed Connect for non-blocking sockets. Closes bug #58169.
  165. 2004-05-03 Gonzalo Paniagua Javier <[email protected]>
  166. * Socket.cs: fix for BeginConnect and non-blocking sockets.
  167. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  168. * Socket.cs: Use assembly name const to load Mono.Posix.
  169. 2004-05-01 Gonzalo Paniagua Javier <[email protected]>
  170. * Socket.cs: only enable socket AIO if MONO_ENABLE_SOCKET_AIO is there.
  171. I will remove this once THE bug is hunted.
  172. 2004-04-28 Gonzalo Paniagua Javier <[email protected]>
  173. * Socket.cs: added support for unmanaged asynchronous IO. Speed up
  174. error checking.
  175. * UdpClient.cs: fixed Dispose so that it only closes the socket when
  176. called explicitly.
  177. 2004-04-24 Gonzalo Paniagua Javier <[email protected]>
  178. * Socket.cs: added GetSupportsAsync and Poll_internal internal calls.
  179. Cleaned up Worker class: moved fields to SocketAsyncResult and use Poll
  180. when the socket is non-blocking before getting EWOULDBLOCK error.
  181. 2004-04-08 Dick Porter <[email protected]>
  182. * Socket.cs: Rearrange the internal calls so that the exceptions
  183. are thrown from managed code
  184. 2004-03-21 Gonzalo Paniagua Javier <[email protected]>
  185. * Socket.cs: when Dispose (bool) is called from the finalizer, always
  186. do the cleanup. Fixes yet another nullref with xsp.
  187. 2004-02-19 Gonzalo Paniagua Javier <[email protected]>
  188. * Socket.cs: implemented IOControl.
  189. 2004-02-18 Gonzalo Paniagua Javier <[email protected]>
  190. * Socket.cs: use the threadpool for asynchronous calls instead of
  191. creating new threads.
  192. 2004-02-12 Gonzalo Paniagua Javier <[email protected]>
  193. * Socket.cs: added locks around waithandle assign and comparison in
  194. class Worker. Handle other exceptions than SocketException for
  195. non-blocking sockets.
  196. 2004-01-24 Gonzalo Paniagua Javier <[email protected]>
  197. * Socket.cs: handle WSAEWOULDBLOCK for non-blocking sockets. Fixes
  198. bug #53168. Avoid the creation of the ManualResetEvent in class Worker
  199. whenever possible.
  200. 2004-01-24 Gonzalo Paniagua Javier <[email protected]>
  201. * Socket.cs: if we have a pending async event, delay socket closing
  202. until EndX is called. Fixes bug #53229. Check parameters and if the
  203. socket has been disposed. Implemented IDisposable explicitly. The
  204. threads created have IsBackground = true now.
  205. 2004-01-10 Gonzalo Paniagua Javier <[email protected]>
  206. * Socket.cs: patch from Brad Fitzpatrick <[email protected]> episode 2.
  207. 2003-12-30 Gonzalo Paniagua Javier <[email protected]>
  208. * Socket.cs: fix for several asynchronous methods to delay exception
  209. throwing. Patch by Brad Fitzpatrick <[email protected]>.
  210. 2003-12-18 Gonzalo Paniagua Javier <[email protected]>
  211. * TcpListener.cs: get the LocalEndPoint from the socket after binding.
  212. Fixes bug #52329.
  213. 2003-10-20 Miguel de Icaza <[email protected]>
  214. * TcpClient.cs: Fix void Dispose (bool disposing) to follow the
  215. pattern. It was shutting down the managed resources even in the
  216. finalizer case, it should only do that when called from
  217. IDisposable.Dipose.
  218. 2003-09-11 Lluis Sanchez Gual <[email protected]>
  219. * NetworkStream.cs: Added [In,Out] attributes to Read method.
  220. 2003-08-24 Gonzalo Paniagua Javier <[email protected]>
  221. * TcpListener.cs: various fixes to make the new tests pass. Closes
  222. bug #47848.
  223. 2003-08-10 Miguel de Icaza <[email protected]>
  224. * UdpClient.cs (Receive): Fix Bug 45633; We should do a blocking
  225. call until a datagram is arrives from the remote host. This
  226. removes the 512 "magic" buffer size when we did not have any data.
  227. 2003-07-31 Gonzalo Paniagua Javier <[email protected]>
  228. * NetworkStream.cs:
  229. * Socket.cs: fixed array boundary checks. 0 sized arrays are allowed.
  230. 2003-07-18 Andreas Nahr <[email protected]>
  231. * Socket.cs: Added GetHashCode method
  232. 2003-07-14 Jerome Laban <[email protected]>
  233. * Socket.cs:
  234. * ProtocolType.cs:
  235. * SocketOptionLevel.cs:
  236. * TcpListener.cs:
  237. * TcpClient.cs:
  238. * UdpClient.cs:
  239. Added IPv6 support.
  240. * IPv6MulticastOption.cs: Added for IPv6 support.
  241. 2003-05-16 Dick Porter <[email protected]>
  242. * Socket.cs: Use Mono.Posix.UnixEndPoint if its available
  243. 2003-05-11 Gonzalo Paniagua Javier <[email protected]>
  244. * MulticastOption.cs: patch by Jerome Laban included in bug #42393.
  245. 2003-05-05 Gonzalo Paniagua Javier <[email protected]>
  246. * Socket.cs:
  247. (Select): don't create arrays if not needed.
  248. (Poll): call Select_internal directly.
  249. Warning: you need an up to date runtime for this to work!
  250. 2003-03-25 Gonzalo Paniagua Javier <[email protected]>
  251. * UdpClient.cs: don't bind the socket unless .ctor (IPEndPoint) is used.
  252. Added more checks and throws.
  253. Small fixes in Send to avoid duplicating the buffer.
  254. Moved CheckIfDisposed calls to the start of the methods instead of doing
  255. the check inside a finally clause.
  256. 2003-03-03 Gonzalo Paniagua Javier <[email protected]>
  257. * Socket.cs:
  258. (SendTo): fix from Jerome Laban <[email protected]>.
  259. 2003-02-28 Gonzalo Paniagua Javier <[email protected]>
  260. * Socket.cs: patch from Elan Feingold <[email protected]>. Fixes
  261. NullReferenceException when the callback is null.
  262. 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
  263. * NetworkStream.cs: allow 0 size array in Write.
  264. 2003-02-16 Gonzalo Paniagua Javier <[email protected]>
  265. * Socket.cs: make Worker.Connect and Receive work with non-blocking
  266. sockets. May be Receive* and Send* in Worker need to do the same. I'll
  267. wait for bug reports. Set IsCompleted to true before invoking the end
  268. callback. Fixes bug #38136.
  269. 2003-01-23 Gonzalo Paniagua Javier <[email protected]>
  270. * NetworkStream.cs: the check for disposed should not be done in the
  271. finally clause.
  272. 2003-01-04 Gonzalo Paniagua Javier <[email protected]>
  273. * UdpClient.cs: fixed bug #36226.
  274. 2002-11-13 Dick Porter <[email protected]>
  275. * Socket.cs: Only close the socket in one place, ie the Dispose
  276. method. Fixes bug 32054.
  277. 2002-11-09 Gonzalo Paniagua Javier <[email protected]>
  278. * Socket.cs: offset == size == 0 it's ok in Send ().
  279. 2002-11-03 Phillip Pearson <[email protected]>
  280. * TcpClient.cs: Fixed SetTcpClient() to pass through to the Client
  281. property, which now sets stream to null (it's set by GetStream()). This
  282. should make GetStream() work on a TcpClient which has had the socket set
  283. by assignment to the Client property, not only one that has been created
  284. by TcpListener.AcceptTcpClient().
  285. 2002-10-08 Dick Porter <[email protected]>
  286. * Socket.cs:
  287. * NetworkStream.cs: Bounds checking fixes, and better exception
  288. texts. Changes by [email protected] (Timothy J. Mills).
  289. 2002-10-03 Dick Porter <[email protected]>
  290. * TcpClient.cs: NoDelay is a TCP option, not Socket
  291. 2002-09-16 Miguel de Icaza <[email protected]>
  292. * SocketFlags.cs: Add missing enumeration.
  293. * UdpClient.cs: Make Dispose private.
  294. 2002-08-20 Dick Porter <[email protected]>
  295. * Socket.cs: Fix deadlock when the AsyncResult callback calls
  296. End*(). Set the async request's worker property so it can return
  297. results. These two fixes combined fix bug 28092.
  298. 2002-06-24 Dick Porter <[email protected]>
  299. * Socket.cs: Make SetSocketOption cope with boolean values (they
  300. are passed as objects, not the ints the runtime was expecting)
  301. 2002-05-17 Lawrence Pit <[email protected]>
  302. * TcpListener.cs: Renamed LocalEndPoint to LocalEndpoint
  303. * NetworkStream.cs, UdpClient.cs and TcpClient.cs: modified disposable
  304. routines, added checks for disposed state.
  305. * UdpClient.cs: commented out GetHashCode and Equals as it's not
  306. overriden in ms.net implementation.
  307. 2002-05-17 Jaroslaw Kowalski <[email protected]>
  308. * TcpClient.cs: fixed SetTcpClient so that
  309. TcpListener.AcceptTcpClient works and allows
  310. you to call GetStream() on its result
  311. 2002-04-24 Dick Porter <[email protected]>
  312. * Socket.cs (Poll): Give correct argument to Select(), as spotted
  313. by Jaroslaw Kowalski <[email protected]>
  314. 2002-04-16 Gonzalo Paniagua Javier <[email protected]>
  315. * UdpClient.cs: implemented.
  316. 2002-04-02 Dick Porter <[email protected]>
  317. * TcpListener.cs: in Start(), set the socket listen backlog value
  318. to a sane value (noticed by Jonathan Stowe <[email protected]>)
  319. 2002-02-13 Dick Porter <[email protected]>
  320. * Socket.cs: Implemenent Select, Blocking, Connected,
  321. GetSocketOption, Poll, SetSocketOption and Shutdown
  322. * MulticastOption.cs:
  323. * LingerOption.cs: Delete override methods that don't need to be
  324. implemented
  325. 2002-01-23 Miguel de Icaza <[email protected]>
  326. * NetworkStream.cs: Implement class.
  327. 2002-01-23 Dick Porter <[email protected]>
  328. * SocketException.cs: Implemented
  329. * Socket.cs: Implemented most methods
  330. * LingerOption.cs: Made compile
  331. * AddressFamily.cs: Removed empty auto-generated comments
  332. 2002-01-17 Miguel de Icaza <[email protected]>
  333. * SocketException.cs: Reimplemented.
  334. 2002-01-06 Ravi Pratap <[email protected]>
  335. * ChangeLog : Add to this directory.
  336. * SocketException.cs, TcpClient.cs, TcpListener.cs : MonoTODO
  337. attribute decoration.