Skip to content

Conversation

mbaechler
Copy link
Contributor

… socket support

@mbaechler
Copy link
Contributor Author

fixes #456

@mbaechler
Copy link
Contributor Author

could someone have a look at this simple patch ?

@KostyaSha
Copy link
Member

I'm not an expert of factory pattern, please wait for @marcuslinke reply.

@marcuslinke
Copy link
Contributor

@mbaechler Your patch seems fine but I needs to check whether the same issue affects the master branch first. Will merge ASAP. Thanks!

@mbaechler
Copy link
Contributor Author

thanks !
If you think I can add some tests somewhere to trigger the bug, please tell me.

@KostyaSha
Copy link
Member

Initialise class twice and compare that url not modified?

@mbaechler
Copy link
Contributor Author

It would test the bug's cause, but this behavior is not a problem by itself, it's the context that transform this side-effect into a bug.
If we were to write this side-effect free test, we would had better time make the configuration immutable instead.

@marcuslinke
Copy link
Contributor

@mbaechler Right. Please remove setUri from DockerClientConfig to make it immutable.

@mbaechler
Copy link
Contributor Author

ok, fixup push

@marcuslinke
Copy link
Contributor

@mbaechler Thanks. Lets wait for travis before merge. Seems it has some (performance) issue today.

marcuslinke added a commit that referenced this pull request Feb 12, 2016
Issue-456 input configuration should not be altered as it breaks unix…
@marcuslinke marcuslinke merged commit 4410848 into docker-java:2.x Feb 12, 2016
@marcuslinke marcuslinke changed the title Issue-456 input configuration should not be altered as it breaks unix… Input configuration should not be altered as it breaks unix socket support Feb 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants