in reply to Re: Net::Server only sends 128bytes at a time
in thread Net::Server only sends 128bytes at a time
It's base64 encoded binary data. Wireshark shows the data being truncated at 128 bytes around nqNP and 95vzto client:'1:AAE/LxI1l9kvzveExnBSsku783Z+1mWYld/J7G3nl/OijlRXuIZXDKcHQ +DTlkIB52p/qxiFohG76Jxhb1F64oyPpom24PO7RVvKb4jQkOoi4xNbBwSbvMUsq1ZnqNP +95vz2ifeWzqqPmR9XRS7OfbgZSK8X3le/YP/Ca8Mj5K90aJ7oYF2HaeJFotVeCO9eLpS5 +zlH02gGMADCfS+ZXwN4420u/fwevNrBMx/cSeCVtcocS6i3wPNlJKA'
And the section of code that sends it:
This is the line that sends the data, from above.my $sql="SELECT data FROM firmware_data WHERE firmware_key = '$firmwa +re_key' AND row_number = $current_row"; $self->log(4, "select: $sql"); $sth=$dbh->prepare($sql); $sth->execute; $firmware_packet=$sth->fetchrow(); $sth->finish(); if (defined($firmware_packet) ){ $IdleUserTimeout=0; #reset the timer since we got some user data $self->log(4,"firmware row: $current_row"); #send the data $self->log(4, "firmware to client:'$current_row:$firmware_packet'"); print "$current_row:$firmware_packet\r\n"; if ($current_row < $data_NumberOfRows){ $current_row++; #get the next packet net time around } if ($firmware_packet =~ /^#bye$/){ #we recived the BYE command, so inform the client and close the so +cket down log_user_out($self, $dbh, $MAC); return; } select(undef, undef, undef, .5); #500ms
UPDATE: I'm using perl 5.8.8 on Ubuntu 8.04 LTS Server
Linux 2.6.24-23-server
Thanks for the help,
Aaron
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::Server only sends 128bytes at a time
by zwon (Abbot) on Dec 17, 2009 at 22:07 UTC | |
by alager (Acolyte) on Dec 17, 2009 at 22:38 UTC | |
by zwon (Abbot) on Dec 17, 2009 at 23:11 UTC | |
by zwon (Abbot) on Dec 17, 2009 at 23:36 UTC | |
by alager (Acolyte) on Dec 18, 2009 at 16:42 UTC | |
by ikegami (Patriarch) on Dec 18, 2009 at 18:27 UTC | |
by zwon (Abbot) on Dec 18, 2009 at 19:02 UTC | |
by alager (Acolyte) on Dec 22, 2009 at 21:17 UTC |