Socket ReceiveBufferSize & SendBufferSize set to random values.

Fixes :

https://bugzilla.xamarin.com/show_bug.cgi?id=16021
https://bugzilla.xamarin.com/show_bug.cgi?id=12754

Resolves:

http://lists.ximian.com/pipermail/mono-list/2013-June/050008.html

A reference to the variable bufsize, local to the else-if block was being passed to the function setsockopt hence
the properties ReceiveBufferSize & SendBufferSize were being set to garbage on the Socket class. This could and did have a SERIOUS performance hit on socket communication. It is not inconceivable that people would try to increase the
buffer sizes and inadvertently shrink them considerably with a consequence of drastically degrade performance.

Narinder Claire
narinder.claire <> gmail.com

Signed-off-by: Narinder CLAIRE <narinder.claire@uk.bnpparibas.com>
[linker] Do not remove resources from mscorlib unless it's action is set to Link
[corlib] Improve the exception message in Delegate::Remove.
[jit] Improve arm IMT debugging.
[jit] Use unsigned comparisons with the IMT thunks as they can live in high memory addresses.
Add more tests
Extract CurrencyDecimalDigits using currency and not territory info. Fixes #15895
Update currency separators. Fixes #15425
Fix the build.
[sle] Enable char equality comparison. Fixes #15582
Disable failing test
Merge pull request #801 from Ninds/master

Setting ReceiveBufferSize & SendBufferSize on Socket (Bug 16021 & Bug 12754)
[mcs] tests update
Always show error message when type resolver produces ambiguous type. Fixes #16115
[mdoc] Flush expected output.

Commit 0a2c38df changed Delegate.Remove() so that it uses
Locale.GetText(), which thus introduces additional exceptions which
can be possibly thrown from Delegate.Remove().

This is similar to the situation in corlib/3d3fe6af (added
Locale.GetText() use) and mdoc/574dbc8e (updated unit tests).
[runtime]Don't expand variant generic interfaces on arrays.

We don't need to expand variant interfaces in 4.5 as they work
just fine.

This saves us from loading a lot of extra metadata and inflating
spurious classes.
[llvm] Fix type mismatches in the implementation of the atomic opcodes.
[linker] Do not import something that is not marked when sweeping type references (otherwise we might re-intoduce dependencies we're not including or need) [#16213]
[jit] Fix the DISABLE_JIT build.
[System.Configuration/Test] Try to track down failure in buildbot

This TestConnectionStringRetrieval unit test (committed by me some months
ago) succeeds for me in a clean checkout, but I don't understand why it
fails in the buildbot, so let's place some sanity check in it.