Skip to content

Conversation

@blounty
Copy link
Contributor

@blounty blounty commented May 18, 2016

Updated how content is handled, it seems content was not previously being added.

There also appeared to be a race condition which sometimes caused the connection output stream to no be ready at the time of writing.

@dnfclas
Copy link

dnfclas commented May 18, 2016

Hi @blounty, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.

TTYL, DNFBOT;

SSLContext context = SSLContext.GetInstance ("TLS");
context.Init (kmf?.GetKeyManagers (), tmf.GetTrustManagers (), null);
httpsConnection.SSLSocketFactory = context.SocketFactory;
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tabs. vs. spaces mismatch. Please use tabs.

@jonpryor
Copy link
Contributor

@grendello
Copy link
Contributor

grendello commented May 19, 2016

LGTM - after tabs vs spaces are fixed and tests added. And please squash the commits into one, thanks :)

@dnfclas
Copy link

dnfclas commented May 20, 2016

Hi @blounty, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

ICredentials creds = data.UseProxyAuthentication ? Proxy?.Credentials : Credentials;
if (creds == null) {
if (Logger.LogNet)
if (Logger.LogNet)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this indented?

…ork with requests which contains content. Also fixed a race condition which causes the Output stream to not be ready. Fixed issues with calling on the MainThread which is not alowed with the Java HttpURLConnection

updating logger incorrect calls

adding fixes
@jonpryor
Copy link
Contributor

This still needs unit tests. :-)

@grendello
Copy link
Contributor

@blounty I'm going to accept this seeing that more and more people run into this issue, however please provide the tests whenever you have the chance, thanks :)

@grendello grendello merged commit 5db477d into dotnet:master Jun 20, 2016
@danielcaceresm
Copy link
Contributor

danielcaceresm commented Jun 28, 2016

I've solved this issue in my fork: danielcaceresm@bd1f0b4

These changes are based on the AndroidClientHandler class before the modifications of this pull request.
I think that my changes are simplier, and the commented race condition, doesn't exists.

Other change I've made is to move the connection reference to the response class, this approach is better than holding the last connection in the handler. On the other hand, is pending to implement, dispose the connection if it fails while connecting.

If you consider my changes, I can open a new pull request.

@grendello
Copy link
Contributor

@danielcaceresm please open a separete PR

radical pushed a commit that referenced this pull request May 8, 2018
Running `make all` would fail:

	make: *** No rule to make target `bin/TestDebug/Java.Interop.Tools.JavaCallableWrappers-Tests.dll', needed by `all'.
	Stop.

This happened because
`Java.Interop.Tools.JavaCallableWrappers-Tests.dll` was part of
`$(TESTS)`, which is a dependency of the `all` target, but there
wasn't a rule to create that file.

Add a rule to create
`bin/TestDebug/Java.Interop.Tools.JavaCallableWrappers-Tests.dll`.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants