tcalmant / ipopo

iPOPO: a Service-Oriented Component Model for Python
https://ipopo.readthedocs.io/
Apache License 2.0
69 stars 28 forks source link

Prevent exported services from being hooked to the internal http server #70

Closed ahmadshahwan closed 7 years ago

ahmadshahwan commented 7 years ago

This caused an error in Cohorte Herald when an HTTP resource is published. That is a component implementing pelix.http.HTTP_SERVLET.

Herald communication was disturbed because of the echo of the http "servlet" (originally published in a separate isolate) in the forker. The save servlet was also bound to the forker's http server.

Individual cases can be solved by decorating each component with the following.

@Property("_reject", pelix.remote.PROP_EXPORT_REJECT, pelix.http.HTTP_SERVLET)

The proposed solution aims at ignoring all imported services when http services are hooked to the built-in http server of Pelix.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.02%) to 82.279% when pulling 4ffd73471c3bdbfd20d9d127adeb8456771d76b8 on ahmadshahwan:master into e727b800542cd25ec71b64355eb8ff67059d7443 on tcalmant:master.