aboutsummaryrefslogtreecommitdiff
path: root/src/mm-broadband-modem.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2013-02-15 13:42:44 -0600
committerDan Williams <dcbw@redhat.com>2013-02-15 13:43:50 -0600
commit263be58465ba0e449d73b65fd69d5dc10423a78f (patch)
tree9c04a25deaf3dc415fd050d3e608687840e47b27 /src/mm-broadband-modem.h
parent5280364c4bfc0e84ccac9abbc02c82d46db5034a (diff)
serial-port: don't steal data from PPP when connected
There was a race where if PPP was slow to start, MM could read the first bits of PPP from the port, which MM shouldn't really do. So if the port is connected, remove our GIOChannel watch and let pppd handle all the data. When the port is disconnected, re-attach our watch and start reading from the port again. This may make it harder to detect spurious disconnects if for example pppd drops the connection and the thing controlling PPP (eg, NetworkManager or something else) doesn't tell us about that event by disconnecting the bearer. This is arguably programmer error though. See the logs in https://bugzilla.gnome.org/show_bug.cgi?id=624956#c10 for an example of this: DEBUG: <1280300196.929489> (ttyACM0): <-- '<CR><LF>CONNECT<CR><LF>' DEBUG: <1280300196.929761> (ttyACM0): port now connected DEBUG: <1280300196.929853> Modem /org/freedesktop/ModemManager/Modems/0: state changed (connecting -> connected) DEBUG: <1280300196.929954> (ttyACM0): simple connect state 6 DEBUG: <1280300196.933432> (ttyACM0): <-- '~\-1}#\-64!}!} } }2}#}$\-64#}!}$}%\-36}"}&} }*} } g}%~'
Diffstat (limited to 'src/mm-broadband-modem.h')
0 files changed, 0 insertions, 0 deletions