Commit Graph
485 Commits
Author SHA1 Message Date
Tomas Weinfurt aadf46bcfd Fix string error handling for failed DNS lookup (dotnet/corefx#32351)
* better handling for dns failures

* cleanup

* add test for DNS failure exception

* relaxt test a little bit to make it more robust for future


Commit migrated from https://github.com/dotnet/corefx/commit/ce4ceb09e0bd21675a3523edebfaf73a16714d15
2018-11-07 09:55:12 -05:00
Stephen Toub 0f57ecc1c1 Disable another NameResolutionPalTest on ARM64 (dotnet/corefx#33247)
* Disable another NameResolutionPalTest on ARM64

* Update src/System.Net.NameResolution/tests/PalTests/NameResolutionPalTests.cs

Co-Authored-By: stephentoub <[email protected]>


Commit migrated from https://github.com/dotnet/corefx/commit/4bc3f6afb2c51c7fea6f7ca1a6211a701b608407
2018-11-05 14:33:11 -05:00
Max Kerr 92e6e4c336 Disable TryGetAddrInfo_HostName_TryGetNameInfo on Arm64. (dotnet/corefx#33223)
* Disable test on arm64.

* Remove extra attribute.


Commit migrated from https://github.com/dotnet/corefx/commit/b51c5b8bed06f924b5470d9042d4de0381dd89c9
2018-11-02 22:32:12 -04:00
Wes Haggard 954fb511b3 Rename AssemblyKey properties to StrongNameKeyId as part of arcade work
Commit migrated from https://github.com/dotnet/corefx/commit/7edd861bf2dd59ecdb4284e0fd291d7458198a9d
2018-10-30 15:14:01 -07:00
Stephen Toub 40641f0368 Disable socket inheritance on Windows and macOS (dotnet/corefx#32903)
* Disable socket inheritance on Windows and macOS

We already disabled it on Linux.  Doing the same for Windows and macOS.

* Add test for socket non-inheritance

* Disable new test on netfx


Commit migrated from https://github.com/dotnet/corefx/commit/6ccd555cf3f678d57967f871c072ff93e8859dfa
2018-10-19 20:24:50 -04:00
Sam Neirinck 68b24b8b69 Cleanup MSDN URL's (dotnet/corefx#32663)
* Fix non-https msdn links

* Additional HTTPS treatment


Commit migrated from https://github.com/dotnet/corefx/commit/0bfc4f3cf62f6fc29162ad5b1b89acc14124a375
2018-10-09 11:59:36 -07:00
Eric Erhardt 8b6d5baf20 Change .csproj to new Configurations property
Change .sln to use the managed C# project system GUID.


Commit migrated from https://github.com/dotnet/corefx/commit/e05508a62d28f4807f85abe9cb7adf8382f792b4
2018-06-28 17:49:22 -05:00
Eric Erhardt 1df03e5bbd Rename dir files to Directory.Build
dir.props => Directory.Build.props
dir.targets => Directory.Build.targets


Commit migrated from https://github.com/dotnet/corefx/commit/204a8dbbc23bfc51d419c93f2f2ddaf50db8020f
2018-06-15 17:07:48 -05:00
Eric Erhardt 70091b9c8b Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ad505eb98c6a887db2d2932fec256d9e4e394169
2018-06-11 17:20:10 -05:00
Marco Rossignoli e714204d7a Replace files with CoreLib mirror(manual check) (dotnet/corefx#29954)
* remove dups

* Address PR feedback Padding.cs

* address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/8e53c7efea4efd28ba9d111dd4e70e3ca2f987f3
2018-05-30 19:48:51 -04:00
David Shulman f200757e36 Remove obsoleted comment in NameResolutionPal (dotnet/corefx#29944)
We previously decided against doing this TODO item. Cleaning up the comments.

Closes dotnet/corefx#2891

Commit migrated from https://github.com/dotnet/corefx/commit/77b39081fa83b664ff0d679a11de03d2157207b4
2018-05-28 13:20:04 -07:00
Stephen Toub 27591ea6e4 Use FreeAddrInfoExW instead of FreeAddrInfoEx in Dns (dotnet/corefx#29919)
* Use FreeAddrInfoExW instead of FreeAddrInfoEx in Dns

We should be using the W version to match the GetAddrInfoExW version we're using explicitly.

* Fix other minor issues

Unnecessary SetLastError, using named const for library, removing
unnecessary static field, etc.


Commit migrated from https://github.com/dotnet/corefx/commit/80ecc7f57aacb643ca788495ff65823bf566d1c0
2018-05-25 14:24:28 -04:00
wtgodbe f38ceb30be Convert all .csproj files in src to SDK-style projects
Commit migrated from https://github.com/dotnet/corefx/commit/91d7e62bbf28094a2b419b87847bcd6a7658564d
2018-05-21 11:53:46 -07:00
Stephen Toub a0f91e565b Remove StringBuilder usage from Dns.GetHostName (dotnet/corefx#29594)
Commit migrated from https://github.com/dotnet/corefx/commit/92614331de9f6ebe65c492354bcfdc85a2a895e6
2018-05-08 20:36:45 -07:00
Marco Rossignoli 4110b40d54 Replace files with CoreLib mirror (<30% differences) (dotnet/corefx#29433)
* remove duplicates

* remove unused Interop.GetFullPathNameW.cs

* revert TupleExtensions.cs for netfx incompatibility

* replace coreclr merged

* replace constants conflicts


Commit migrated from https://github.com/dotnet/corefx/commit/5168f541d4def7c54e490a685ff5dc0e3f90e91a
2018-05-02 06:51:46 -07:00
Dan Friedman 33591df321 Clean dead code System.Net* (dotnet/corefx#29302)
* Clean dead code in System.Net

* More cleaning

* Clean dead code for HttpListener

* Clean dead code for Mail

* Clean dead code in Http

* Clean dead code for NetworkInformation

* Clean more dead code

* Various fixes

* Build fix

* Restore field

* var -> string


Commit migrated from https://github.com/dotnet/corefx/commit/71cc1ae8ba02b7b71878cb69a50c667c8ed0f50f
2018-05-01 16:49:12 -07:00
Eric St. John 8fcddacb0e Update for new API compat operand names
Commit migrated from https://github.com/dotnet/corefx/commit/a9f347950a1526b28f4577f2dbf94c23b3123d5c
2018-04-25 14:26:00 -07:00
Marco Rossignoli 528e91dabf Replace identical files with CoreLib mirror (dotnet/corefx#28593)
Commit migrated from https://github.com/dotnet/corefx/commit/5041dbb272ae05b360db538cf62fc2847277fd7e
2018-04-17 16:05:44 -07:00
Jan Kotas 0c82fdc6cb Simplify sspicli interop marshaling (dotnet/corefx#29031)
* Delete unnecessary wrapper

* Simplify sspicli interop marshaling

This makes it both faster and more AOT friendly

* CR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/437e8823028d09ad5c62ec71e2393417e3f7130c
2018-04-11 18:28:51 -04:00
Max Kerr 2b478008aa Re-enable hostname resolution test on Linux, but skip under certain conditions (dotnet/corefx#28324)
This test assumed that the host name can always be resolved, which isn't guaranteed on Unix.

In the interest of "testing as much as we can" this change enables the test, but passes it if we get the specific error that indicates we haven't been able to resolve the localhost on Unix. That way we'll hopefully still see failures if things go wrong somewhere else.

Fixes: dotnet/corefx#20245

Commit migrated from https://github.com/dotnet/corefx/commit/69ba7ef78b1d9a924f09863c8571cc2a210f5124
2018-03-22 11:17:08 -07:00
Wes Haggard 4d97955681 Consolidate matching ref generated baseline files
This change collapses some baseline files as well as fixes
some of the reference mis-matches


Commit migrated from https://github.com/dotnet/corefx/commit/8842923d3d6bc357d39b34c93353df952ac02079
2018-03-09 15:43:29 -08:00
Wes Haggard dccc06ade2 Baseline all reverse apicompat issues
Commit migrated from https://github.com/dotnet/corefx/commit/ddb31b5d2f393cf1a16653ff99736a6f25cd98b5
2018-03-09 15:43:29 -08:00
Eric St. John 98c0015605 Update SLNs and projects to be in sync with configurations
Commit migrated from https://github.com/dotnet/corefx/commit/8ce7e620e1b5001be002598f4d10d4becdd77a49
2018-03-08 08:25:31 -08:00
Simon Nattress 0aa965eb67 Re-enable UAP builds (dotnet/corefx#27531)
* Build uapaot System.Numerics.Vectors

With `Vector<T>` now residing in System.Private.CoreLib, directly reference System.Private.Corelib instead of contracts just like netcoreapp does.

Add uapaot flavor since System.Private.CoreLib has a different strong name key on that platform.

* Make EnsureExtendedPrefixOverMaxPath available to UAP

Add the helper method `System.IO.PathInternal.EnsureExtendedPrefixOverMaxPath` to Common\src\System\IO\PathInternal.Windows.cs. It was previously not visible to UAP since  Common\src\CoreLib\System\IO\PathInternal.Windows.cs is not included in UAP compilation.

* Keep SocketsHttpHandler out of UAP builds

SocketsHttpHandler is not supported in uap and is currently leaking into UAP builds since they've been disabled for a few weeks. Adjust the contract so it's not available to UAP, and clean the implementation assembly so SocketsHttpHandler internals don't leak out into HttpClientHandler.Core.cs.

* Fix GetAddrInfoExSupportsOverlapped UAP build break

`System.Net.NameResolutionPal.GetAddrInfoExSupportsOverlapped` uses LoadLibraryExW which is not compatible with UAP (which only supports LoadLibrary of DLLs within a container). Refactor the helper so UAP returns false.

* Revert "Disable UAP legs per dotnet/corefx#26802 (dotnet/corefx#26822)"

This reverts commit dotnet/corefx@120dce456a.

* Revert "Disable UAP configurations in all configurations build"

This reverts commit dotnet/corefx@2202b4fd49.

* Revert "Disable UAP official builds (dotnet/corefx#26871)"

This reverts commit dotnet/corefx@ef79caf14c.

- Baseline the ApiCompat and GenFacades failures in System.Runtime.Extensions and System.Threading.ThreadPool.
- Adjust naming of files to match branch conventions
- Fix up some configuration issues with uap packaging. The CoreFX.Private.TestUtilities packaging needs updated build tools which can map between uwp6.0 and netstandard2.0.
- ifdef out Thread.GetCurrentProcessorId until we get a new System.Private.CoreLib.


Commit migrated from https://github.com/dotnet/corefx/commit/c9cdfba45e62eeac28ef554d8bbdfdd620a0fd15
2018-03-01 17:59:35 -08:00
Geoff Kizer 310db84738 Merge pull request dotnet/corefx#26926 from MarcoRossignoli/issues/26856_GetHostByName
Remove old GetHostByName logic

Commit migrated from https://github.com/dotnet/corefx/commit/643bccc7f2c24a897cc15c42486d4184e1f931eb
2018-02-19 11:10:00 -08:00
Marco Rossignoli 37098edadd Merge branch 'issues/26856_GetHostByName' of https://github.com/MarcoRossignoli/corefx into issues/26856_GetHostByName
Commit migrated from https://github.com/dotnet/corefx/commit/b2770e847169aba29f28496727be69acae12b4f6
2018-02-14 09:44:42 +00:00
Marco Rossignoli ad77904c24 clean unix
Commit migrated from https://github.com/dotnet/corefx/commit/92dbe7de2ced0f130e46f1bc42399837562d5b14
2018-02-14 09:41:59 +00:00
Marco Rossignoli 50103e674c remove ipv6 params
Commit migrated from https://github.com/dotnet/corefx/commit/12400ad4ebba3f062b85b55d84d69c79438a5e42
2018-02-13 15:52:05 +01:00
Marco Rossignoli bb0ff8abf4 remove duplicate code
Commit migrated from https://github.com/dotnet/corefx/commit/bee8ebcfe09631567c991a9200585bdb000c1dbd
2018-02-13 15:38:59 +01:00
Ubuntu 286c5eebd5 clean GetHostByAddr unix
Commit migrated from https://github.com/dotnet/corefx/commit/24b84faac5d3b48fb7bf0438a4a34f7aaca28f94
2018-02-13 14:21:12 +00:00
Marco Rossignoli 8148db7924 clean GetHostByAddr Windows
Commit migrated from https://github.com/dotnet/corefx/commit/0f0713f16a1e3cfb5e39003cde4ff785c685ab18
2018-02-13 12:42:42 +01:00
Stephen Toub f8e6f41b81 Clear initlocals in a bunch of assemblies (dotnet/corefx#26993)
* Clear initlocals in a bunch of assemblies

Sets
```XML
<ILLinkClearInitLocals>true</ILLinkClearInitLocals>
```
for the assemblies:
    - System.IO.FileSystem
    - System.IO.Pipes
    - System.Memory
    - System.Net.Http
    - System.Net.Http.WinHttpHandler
    - System.Net.NameResolution
    - System.Net.NetworkInformation
    - System.Net.Primitives
    - System.Net.Requests
    - System.Net.Security
    - System.Net.Sockets
    - System.Net.WebSockets
    - System.Net.WebSockets.Client
    - System.Net.WebSockets.WebSocketsProtocol
    - System.Private.Uri
    - System.Runtime
    - System.Runtime.Extensions

Eventually we'd ideally set the flag for the whole repo; these are just the ones I audited thus far.  In a few cases I had to make code changes to adapt, where the code was expecting stackallocs to be cleared.  I also looked at a few other projects (System.Collections, System.Runtime.Numerics) where there were more significant dependencies on clearing and I decided to leave those for later.

* Disable ILLinkClearInitLocals running on Unix until it works there


Commit migrated from https://github.com/dotnet/corefx/commit/f0a032e4a1c8a848574a5db3e69e8a6fa0aae91e
2018-02-13 06:30:25 -05:00
Marco Rossignoli 803158bb2b nit
Commit migrated from https://github.com/dotnet/corefx/commit/a7c62d744221e92e478f47181baf7c18cf14736e
2018-02-13 10:42:15 +01:00
Marco Rossignoli 2be1eef574 update DNS.cs
Commit migrated from https://github.com/dotnet/corefx/commit/e6c97f471fa3aa4794b2fc82cb8d3efbd7b7976d
2018-02-13 10:36:35 +01:00
Marco Rossignoli 121d0b3863 resolve conflict on src/System.Net.NameResolution/src/System/Net/DNS.cs
Commit migrated from https://github.com/dotnet/corefx/commit/01dd591141689870ce54dbf7507561260deba815
2018-02-13 09:26:37 +01:00
Jeff Cyr 34218ec971 Modified Dns.GetHostAddressesAsync to be truly async (dotnet/corefx#26850)
* Modified Dns.GetHostAddressesAsync to be truly async

* Applied code review recommendations

* Unix build fix

* Unix build fix dotnet/corefx#2

* Unix build fix dotnet/corefx#3

* NETFX build fix

* Fixed useGetHostByName logic

* Simplified ProcessResult code

* Cleaned up cancel code

* cleanup


Commit migrated from https://github.com/dotnet/corefx/commit/d3ff31e3b9e8c7b1e6003196650bae4a658ef889
2018-02-11 19:18:08 -05:00
Marco Rossignoli 932bf3d743 remove fallback code in InternalGetHostByAddress
Commit migrated from https://github.com/dotnet/corefx/commit/28cc257b8a5bd08f0fee411781e6512eb17ae5fc
2018-02-10 10:22:03 +01:00
Marco Rossignoli 0f26905cc5 fix source file reference
Commit migrated from https://github.com/dotnet/corefx/commit/b8327d3cd7db59e49e757f2e1270198cde1ecf05
2018-02-08 17:07:03 +01:00
MarcoRossignoli d6d040e2be clean unix
Commit migrated from https://github.com/dotnet/corefx/commit/af6ded473e1d2f45427531aa5013884488a72db0
2018-02-08 15:25:13 +01:00
Marco Rossignoli 3395f43456 clean win code
Commit migrated from https://github.com/dotnet/corefx/commit/4bb1dc2994cfb2680f97c45021d2a778b5f8f008
2018-02-08 11:26:43 +01:00
Max Kerr 6b353dd0e6 Re-Enable disabled DNS tests on OSX (dotnet/corefx#26949)
These were disabled a few days ago, but it looks like the issue may have been caused by problematic test infrastructure. One of the offending machines has been re-imaged, and the others have been rebooted.

Re-enabling the tests should allow us to determine if it was an infrastructure issue, or if there is a real problem here.

Fixes: dotnet/corefx#26789

Commit migrated from https://github.com/dotnet/corefx/commit/b60618197972da445ff5e675d425459fc9c0d3ae
2018-02-07 16:55:49 -08:00
Marco Rossignoli e50d86ac28 remove old GetHostByName logic
Commit migrated from https://github.com/dotnet/corefx/commit/f2db559e28078008dd60e009b3148fca5e8c3d0d
2018-02-07 17:57:40 +01:00
Stephen Toub c4f6f30155 Disable failing DNS tests on macOS (dotnet/corefx#26790)
Commit migrated from https://github.com/dotnet/corefx/commit/524f01c982407591051b69e6fb13d9ffbc0e36fa
2018-02-02 10:47:00 -05:00
Stephen Toub 13e1d101a7 Disable failing NameResolutionPalTests (dotnet/corefx#26747)
Commit migrated from https://github.com/dotnet/corefx/commit/0bc7246a14c0dea01926ba371009a3a14c557c0b
2018-02-01 13:52:11 -05:00
Jan Kotas e6c28ba3b1 Cleanup CodeContracts annotations (dotnet/corefx#26324)
Commit migrated from https://github.com/dotnet/corefx/commit/a3e4e241c7b7c33750258082969287b9cf45d757
2018-01-14 14:19:41 -05:00
Ahson Khan 7886be085d Convert uses of the Dangerous APIs to use MemoryMarshal.GetReference (dotnet/corefx#25936)
* Convert uses of the Dangerous APIs to use MemoryMarshal.GetReference

* Fix unresolved merge conflict.

* Add using directive

* Add missing using directives.

* Add references to System.Memory


Commit migrated from https://github.com/dotnet/corefx/commit/40cbd5636851093309b841db4d53af369b7ef1c6
2017-12-21 11:05:06 -08:00
Tim Seaward 0980dfbb66 Removed blocking from DNS tests (dotnet/corefx#25366)
* Removed blocking from DNS tests

* Reacting to review


Commit migrated from https://github.com/dotnet/corefx/commit/83aee560ad5eaeaaeb7ced8f6e192a74e42694d6
2017-11-20 10:28:18 -05:00
Ludovic Henry 2bc22c7dc6 Start switching System.Native from C++ to C (dotnet/corefx#25032)
* Move System.Native/pal_maphardwaretype.cpp to C

* Switch C compiler from C11 to C99

* Move System.Native/pal_errno.cpp to C

* Move System.Native/pal_tcpstate.cpp to C

* Move System.Native/pal_networkstatistics.cpp to C

* Move System.Native/pal_memory.cpp to C

* Move System.Native/pal_io.cpp to C

* Move System.Native/pal_networking.cpp to C

* Define c_static_assert for compiler that don't support static_assert


Commit migrated from https://github.com/dotnet/corefx/commit/6a9f579209491ae9041f208bfe34b89085c0279e
2017-11-16 08:45:26 -08:00
David Shulman 45cce025a2 Remove invalid NameResolution tests (dotnet/corefx#24147)
The Dns_GetHostEntryAsync_* are fundamentially invalid because it's
possible for the broadcast address, 255.255.255.255, to have an DNS
mapping via manually modifying the hosts file.  This was actually
happening on Mac systems as well as an virtual environment running on
top of that (i.e. Windows on Parallels).

Ref:
https://github.com/dotnet/corefx/issues/23992#issuecomment-330250642

Contributes to dotnet/corefx#23992

Commit migrated from https://github.com/dotnet/corefx/commit/e33bee86b4777a2de04bd0dc5b6e9e918bac302a
2017-09-19 12:10:21 -07:00
Lakshmi Priya Sekar 7b6c32e59b Add comment about change.
Commit migrated from https://github.com/dotnet/corefx/commit/43d57385ba00001db19b97e1f9840c15c84a5249
2017-09-14 13:22:40 -07:00