Project

General

Profile

Feature #3234

osmo-gsm-tester: poll the python-smpplib socket using non-busy approach

Added by pespin 4 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
05/04/2018
Due date:
% Done:

0%

Estimated time:
Spec Reference:

Description

In esme.py, we currently register a poll handler (called every few ms). In that poll handler, we call python-smppllib's client.poll(), which calls non-block select to process all messages.

See https://github.com/podshumok/python-smpplib/commit/d27f070ddd99703630583a6ccebca86add593dd0 for the commit which added the APIs we use.

We should instead get the socket fd (client._socket) and register the FD to the event_loop (add a new API there (un)register_fd() or similar), which internally is going to register it with glib, so it polls it together with all other stuff.


Related issues

Related to OsmoGSMTester - Feature #2512: osmo-gsm-tester: Convert event_loop.wait to support passive pollingResolved2017-09-14

History

#1 Updated by pespin 4 months ago

  • Related to Feature #2512: osmo-gsm-tester: Convert event_loop.wait to support passive polling added

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)