summaryrefslogtreecommitdiff
path: root/src/components/connection_handler/include
Commit message (Collapse)AuthorAgeFilesLines
* Format all code in projectKozoriz2016-04-267-168/+176
| | | | | | | | | | Formated all code in appMain, components, plugins to correct coding-style Used clang-format-3.6 Used 2 commands : find src/appMain/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file find src/components/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file find src/plugins/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file
* Merge remote-tracking branch 'upstream/master' into developagaliuzov2016-03-241-1/+1
|\
| * Fixes issue with SDL data resetting during MASTER_RESETAndrey Oleynik2016-03-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two deadlocks during unregistering of all apps because of MASTER_RESET: - ApplicationManagerImpl::UnregisterAllApplications vs ConnectionHandler::CloseSessionServices - ApplicationManagerImpl::UnregisterApplication vs ApplicationManagerImpl::RemoveAppFromTTSGlobalPropertiesList That was causing reset flow blocking and data had not been cleaned up completely. Closes-bug: APPLINK-22117 Conflicts: src/components/application_manager/include/application_manager/application_manager_impl.h src/components/application_manager/src/application_manager_impl.cc src/components/connection_handler/include/connection_handler/connection_handler_impl.h src/components/connection_handler/src/connection_handler_impl.cc
* | Remove ConnectionHandler singletonKozoriz2016-03-044-121/+133
| | | | | | | | | | | | Correctives in src and tests for ConnectionHandler class Related to : APPLINK-21440
* | Fix dead locks if user register 30 and more applicationsdtrunov2016-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During processing this defect I found 3 dead locks in components: conection_handler, hearbeat_monitor. First deadlock: First thread: Calls KeepConnectionAlive() from connection_handler in this method thread locked connection_list_lock_, after that calls method KeepAlive() from heartbeat_monitor and thread tries to lock sessions_list_lock_ wich was locked by second thread Second thread: Blocks sessions_list_lock_ in method Process() from heartbeat_monitor after that sends hearbeat to mobile and calls method SendHeartBeat() from protocol_handler. In this method calls ProtocolVersionUsed() where thread tries to lock connection_list_lock_ wich was locked by first thread -> DEAD LOCK I fixed this problem using RWLock(). Second and third dead locks were associated with time of action of sessions_list_lock in method Process() from heartbeat_monitor I decreased time of action this lock in order to fix this problem. Closes-bug:[APPLINK-19632](https://adc.luxoft.com/jira/browse/APPLINK-19632)
* | Merge pull request #300 from LuxoftSDL/hotfix/Logging_by_ComponentArtem Nosach2015-12-251-5/+7
|\ \ | | | | | | Update logging for component
| * | Fixed wrong logger name for ProtocolHandlerElisey Zamakhov2015-12-181-5/+7
| | | | | | | | | | | | Issues: APPLINK-19597, APPLINK-19603
* | | hottfix/Fix_UT_for_ConnectionHandler_in_GeniviHerasym Oleh2015-12-151-0/+1
|/ / | | | | | | | | | | | | | | Added ConnectionHandler unit tests. Fixed review errors. Related: APPLINK-19073
* | Merge pull request #228 from LuxoftSDL/hotfix/anosach-bugfixAGaliuzov2015-10-053-14/+19
|\ \ | | | | | | Fixes for some components
| * | Remove default parameters from GetDataOnSessionKey() methodArtem Nosach2015-10-042-6/+6
| | | | | | | | | | | | Closes-bug: APPLINK-14473
| * | Make Connection::connection_device_handle() method constArtem Nosach2015-10-041-1/+1
| | | | | | | | | | | | Closes-bug: APPLINK-14473
| * | Move GetDataOnSessionKey() method to connection handler interfaceArtem Nosach2015-10-042-13/+18
| | | | | | | | | | | | | | | | | | | | | Move method to interface to get ability to call it directly from application manager Closes-bug: APPLINK-14473
* | | Implement getting additional counters for handshakeAlexandr Galiuzov2015-10-042-0/+11
|/ / | | | | | | | | | | | | | | Add additional counter to policy for handshake procedure. In case something wrong with handshake this counter will be incremented. Implement: APPLINK-12596 Closes-Issue: APPLINK-12598
* | Merge remote-tracking branch 'origin/release/4.0.0' into developAlexandr Galiuzov2015-08-311-1/+3
|\ \ | |/
| * Update HeartBeat timeoutOleg Krotenko2015-07-281-1/+2
| |
| * Update after reviewOleg Krotenko2015-07-281-0/+2
| |
| * Fixing of core dumps when executing IGNITION_OFF. Update after review. ↵Oleg Krotenko2015-07-281-2/+0
| | | | | | | | APPLINK-11950
| * Fixing of core dumps when executing IGNITION_OFF. APPLINK-11950Oleg Krotenko2015-07-281-0/+1
| |
* | Merge pull request #180 from ↵AGaliuzov2015-08-284-16/+21
|\ \ | | | | | | | | | | | | LuxoftSDL/hotfix/SDL_does_not_apply_HeartBeat_timeout_in_ms SDL does not apply heart beat timeout in ms
| * | fixed comment after reviewdtrunov2015-08-034-10/+10
| | |
| * | Reworked heartbeat timeout on millisecondsdtrunov2015-08-034-11/+16
| |/
* | Fixes setting device consent on data consentAndrey Oleynik2015-07-301-1/+10
|/ | | | | | | | | | | In case data consent has been granted for particular device only this device will get data consent and for other data consent should be asked on app activation. Fixes: APPLINK-15052 Conflicts: src/components/application_manager/src/policies/policy_handler.cc
* Remove notification sending from UnregisterApplication().Artem Nosach2015-06-231-7/+0
|
* Do not resume malformed messaging application.Artem Nosach2015-06-231-9/+2
|
* APPLINK-12868. Fixed wrong unexpectedDisconnect flag setting.Andrey Oleynik2015-05-252-4/+11
| | | | | | | | | Fixed unexpectedDisconnect flag on application unauthorizing during PTU processing. Conflicts: src/components/application_manager/src/application_manager_impl.cc src/components/connection_handler/include/connection_handler/connection_handler.h
* Bug Fixes and ImprovementsSynchronizationCommitJustin Dickow2015-02-205-78/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix Empty perform iteration request Fix type of name from string to enum SendLocation implemented on HTML5 HMI Fixed PI response on VR rejection due to high priority. Fix Apps not responsive/not able to start app/apps remain listed on SYNC even after USB disconnect Mobile API change and processing capabilities Change perform interaction request conditions. Fix SDL must always start 3sec timer before resuming the HMILevel of the app Remove redundant StartSavePersistentDataTimer() call. Change wrong predicate name to right. Added stream request handling feature Made streaming timeout in media manager configurable Put navi app in LIMITED in case of phone call Handling of audio state for applications Add stop streaming timeout into ini file Implement HMILevel resumption for job-1 Fix result code ABORTED when interrupts it by Voice recognition activation Fix incorrect value parameter unexpectedDisconnect in BCOnAppUnregistered Fix SDL send BC.OnAppUnregistered with "unexpectedDisconnect" set to "true" in case received from HMI OnExitAllApplications {"reason":"MASTER_RESET"} Fix Update ini file for iAP1 support Current working directory added to image path Fix helpers to make it workable with more then 2 parameters DCHECK() for ManageMobileCommand() replaced with log message because the latter returns false in some regular situations (e.g. TOO_MANY_PENDING_REQUESTS, see SDLAQ-CRS-10) Remove connection after closing. Signed-off-by: Justin Dickow <jjdickow@gmail.com>
* Latest internal release - last bulk merge before pull request and gitflow!?Justin Dickow2015-01-265-32/+8
| | | | | | Smoke tested on Ubuntu 12.04 Signed-off-by: Justin Dickow <jjdickow@gmail.com>
* HmiStatus modifyJustin Dickow2015-01-245-8/+32
| | | | | | | | | | | | | | | | HU DCHECK occurs during multisession registration Remove unused variable SIGSEGV handler added to flush logger queue FixIncomplete device list in UpdateDeviceList request Fix Memory leak on PutFile break Fix Thread and Timer Fix OnHmiStatus Notification Fix Url array sending for endpoints. Fix HashChange Fix SDL parse incoming JSON message with both members error and result as success message Fix Core crashes while connecting mobile app Signed-off-by: Justin Dickow <jjdickow@gmail.com>
* SDL 3.8!Justin Dickow2014-10-207-0/+1281
Signed-off-by: Justin Dickow <jjdickow@gmail.com>