@@ -160,8 +160,6 @@ main_action(State) ->
160
160
% %
161
161
-spec process_cmd (# child {}) -> ok .
162
162
163
- process_cmd (# child {from = 'undefined' }) ->
164
- ok ;
165
163
process_cmd (# child {url = <<>>}) ->
166
164
ok ;
167
165
process_cmd (# child {url = [_ | _ ]} = St ) ->
@@ -181,7 +179,7 @@ process_cmd(_) ->
181
179
% % https://github.com/cmullaparthi/ibrowse
182
180
% % @since 2011-07-18
183
181
% %
184
- real_cmd (# child {id = Id , method = Method_bin , params = Params , tag = Tag ,
182
+ real_cmd (# child {id = Id , method = Method_bin , params = Params , tag = Tag , gh_pid = Gh_pid ,
185
183
http_connect_timeout = Conn_t , http_timeout = Http_t } = St ) ->
186
184
mpln_p_debug :pr ({? MODULE , real_cmd , ? LINE , params , Id , self (),
187
185
St }, St # child .debug , run , 4 ),
@@ -195,7 +193,7 @@ real_cmd(#child{id=Id, method=Method_bin, params=Params, tag=Tag,
195
193
Req }, St # child .debug , http , 5 ),
196
194
mpln_p_debug :pr ({? MODULE , real_cmd , ? LINE , start , Id , self ()},
197
195
St # child .debug , run , 2 ),
198
- ejobman_receiver :send_ack (Id , Tag ),
196
+ ejobman_group_handler :send_ack (Gh_pid , Id , Tag ),
199
197
T1 = now (),
200
198
ejobman_stat :add (Id , 'http_start' ,
201
199
[{'header' , mpln_misc_web :make_proplist_binary (Hdr )},
@@ -216,7 +214,8 @@ real_cmd(#child{id=Id, method=Method_bin, params=Params, tag=Tag,
216
214
% %
217
215
% % @doc sends result to ejobman_handler and ejobman_stat
218
216
% %
219
- process_result (# child {id = Id , group = Group }, Res , T1 , T2 ) ->
217
+ process_result (# child {id = Id , gh_pid = Pid , group = Group }, Res , T1 , T2 ) ->
218
+ ejobman_group_handler :cmd_result (Pid , Res , T1 , T2 , Id ),
220
219
send_stat (Id , Res ),
221
220
ejobman_handler :cmd_result (Res , T1 , T2 , Group , Id ).
222
221
0 commit comments