Skip to content

Commit

Permalink
close matcher connections faster
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Jun 25, 2024
1 parent 40e1d0d commit 0e76f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ function w8io_tv_string( $t, $v )
prolog();
$matcher = clone wk();
$matcher->setNodeAddress( W8IO_MATCHER );
$json = $matcher->fetch( '/matcher/transactions/' . $f );
$json = $matcher->fetch( '/matcher/transactions/' . $f, false, null, null, [ 'Connection: close' ] );
unset( $matcher );
if( $json === false || false === ( $json = wk()->json_decode( $json ) ) )
echo json_encode( [ 'error' => "fetch( /matcher/transactions/$f ) failed" ], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES );
Expand Down

0 comments on commit 0e76f2f

Please sign in to comment.