Skip to content

Commit

Permalink
get access to tls socket
Browse files Browse the repository at this point in the history
  • Loading branch information
sg2342 committed Apr 24, 2017
1 parent 7d92fcd commit 198710f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cowboy_bridge_modules/cowboy_simple_bridge.erl
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ request_body(ReqKey) ->
put_key(ReqKey, RequestCache#request_cache{body = Body, request = NewReq}),
Body.

socket(_ReqKey) ->
undefined.
socket(ReqKey) ->
{_, Req} = get_key(ReqKey),
cowboy_req:get(socket, Req).

recv_from_socket(_Length, _Timeout, ReqKey) ->
{RequestCache, Req} = get_key(ReqKey),
Expand Down

0 comments on commit 198710f

Please sign in to comment.