mirror of
https://github.com/perlbot/perlbuut-pastebin
synced 2025-06-07 14:17:26 -04:00
More debugging, but not quite right
This commit is contained in:
parent
51e6094717
commit
5f813c15e1
2 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,10 @@ sub run_eval {
|
|||
my ($self) = @_;
|
||||
my $data = $self->req->body_params;
|
||||
|
||||
|
||||
|
||||
$self = $self->inactivity_timeout(3600);
|
||||
|
||||
my $code = $data->param('code') // '';
|
||||
my $language = $data->param('language') // 'perl';
|
||||
|
||||
|
|
|
@ -112,6 +112,9 @@ sub async_eval {
|
|||
sequence => $seq,
|
||||
encoding => "utf8"};
|
||||
|
||||
use Data::Dumper;
|
||||
print Dumper($eval_obj);
|
||||
|
||||
my $message = encode_message(eval => $eval_obj);
|
||||
|
||||
$reader->($seq, $future);
|
||||
|
@ -162,6 +165,8 @@ sub get_eval_reader {
|
|||
|
||||
print Dumper($res, length($buf));
|
||||
} while ($res);
|
||||
|
||||
return 0;
|
||||
});
|
||||
|
||||
return sub {
|
||||
|
|
Loading…
Add table
Reference in a new issue