Class: FiberAudit::Static::Rules::DirectSocket
- Defined in:
- lib/fiber_audit/static/rules/direct_socket.rb
Overview
FA1006 – Detects direct socket creation that may bypass scheduler-aware networking and block the scheduler thread.
Constant Summary collapse
- TITLE =
'Direct socket creation'- CATEGORY =
:network- EXACT =
OperationVocabulary::FA1006_EXACT
- MESSAGE =
'Direct socket use may bypass scheduler-aware networking ' \ 'and block the scheduler thread.'
- REMEDIATION =
'Use scheduler-aware networking APIs or verify the ' \ 'socket operations cooperate with the active Fiber scheduler.'
Constants inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
confidence, default_confidence, default_severity, description, id, #initialize, severity
Constructor Details
This class inherits a constructor from FiberAudit::Static::Rules::Base
Class Method Details
.category ⇒ Object
32 |
# File 'lib/fiber_audit/static/rules/direct_socket.rb', line 32 def category = CATEGORY |
.title ⇒ Object
31 |
# File 'lib/fiber_audit/static/rules/direct_socket.rb', line 31 def title = TITLE |
Instance Method Details
#analyze(call_sites:) ⇒ Object
35 36 37 |
# File 'lib/fiber_audit/static/rules/direct_socket.rb', line 35 def analyze(call_sites:) call_sites.filter_map { |site| match(site) } end |