Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Refactor ospd connection handling #114

Merged
merged 4 commits into from
Jun 26, 2019
Merged

Refactor ospd connection handling #114

merged 4 commits into from
Jun 26, 2019

Conversation

bjoernricks
Copy link
Contributor

Refactor ospd to abstract the actual used transport protocol for OSP.

@bjoernricks bjoernricks requested review from jjnicola and a team June 26, 2019 11:54
Use more pythonic api by throwing exceptions instead of using return
values. Rewrite add_vt to be more readable.
We are using python 3 so no need to derive from object anymore
@codecov
Copy link

codecov bot commented Jun 26, 2019

Codecov Report

Merging #114 into master will increase coverage by 0.38%.
The diff coverage is 40.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #114      +/-   ##
==========================================
+ Coverage   70.03%   70.41%   +0.38%     
==========================================
  Files          10       11       +1     
  Lines        1595     1636      +41     
==========================================
+ Hits         1117     1152      +35     
- Misses        478      484       +6
Impacted Files Coverage Δ
ospd/server.py 33.91% <33.91%> (ø)
ospd/ospd.py 71.91% <60%> (+5.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5762c05...7ec1667. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 26, 2019

Codecov Report

Merging #114 into master will increase coverage by 0.25%.
The diff coverage is 39.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #114      +/-   ##
==========================================
+ Coverage   70.03%   70.28%   +0.25%     
==========================================
  Files          10       11       +1     
  Lines        1595     1639      +44     
==========================================
+ Hits         1117     1152      +35     
- Misses        478      487       +9
Impacted Files Coverage Δ
ospd/server.py 33.05% <33.05%> (ø)
ospd/ospd.py 71.91% <60%> (+5.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5762c05...c827a79. Read the comment docs.

Create a clean API for running OSPd via different transport protocols.
This will allow to cleanup the OSPDaemon even further.
The python docs advice to use SSLContext wrap_socket insted of the
wrap_socket function directly. Actually wrap_socket is only a helper
function and uses the SSLContext internally.
@bjoernricks bjoernricks merged commit bae074f into greenbone:master Jun 26, 2019
@bjoernricks bjoernricks deleted the refactor-ospd branch June 26, 2019 12:50
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.

2 participants