Commit Graph

6 Commits

Author SHA1 Message Date
Toporkov Igor
ed644d7d70
MSPF-490: Monitor to detect client disconnection (#111)
* Monitor to detect client disconnetion on server side

* Renaming save_woody_state

* Rework monitor to use one per connection

* Changed event type

* wip: stream handler skeleton

* wip: log abnormal termination

* Upgrade cowboy to 2.7.0

* Finish migration to stream_handler

* Upgrade more dependencies

* Fix state type, remove early_error logging

* rename woody_monitor to comply with cowboy naming

* remove redundant monitor pid from state

* Log only socket errors

* wrap put_woody_state

* experimental: monitor for woody_events

* add missing update

* match on handle_event return, don't monitor tracing

* Rework update_woody_state

* Slightly increase min_complexity in linter config

* Make event state transition explicit

* Remove handle_event wraper

* Revert "Slightly increase min_complexity in linter config"

This reverts commit 38301e3b5b66967cb08c0bf7f27a2a8042a40a19.

* match unmetched returns

* Add test

* Erase trailing whitespace

* Refactor test

* Delete mistakenly added file

* Rename function

* Review fixes

* Match supervisor return

Co-Authored-By: Andrew Mayorov <a.mayorov@rbkmoney.com>

Co-authored-by: Andrew Mayorov <encube.ul@gmail.com>
2020-02-05 14:35:43 +03:00
Anton Belyaev
04e41d92aa MSPF-31: pass through defined thrift results and exceptions for hierarchical Rpc requests 2016-05-21 21:08:16 +03:00
Anton Belyaev
921aa75f49 Rename rpc_erl -> woody_erlang 2016-04-20 14:44:46 +03:00
Anton Belyaev
f3cdfa4402 Use required 'exception_name' Thrift exception struct field for x-rbk-error-logic 2016-04-16 21:23:00 +03:00
Anton Belyaev
4c96258afc Refactor thrift _oneway void_ request (essentialy a _cast_) handling 2016-04-14 15:27:08 +03:00
Anton Belyaev
106415361b First version 2016-04-14 10:40:33 +03:00