Subversion Repositories Kolibri OS

Rev

Rev 4216 | Rev 4220 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4216 Rev 4217
Line 717... Line 717...
717
        jmp     .chunk_loop
717
        jmp     .chunk_loop
Line 718... Line 718...
718
 
718
 
719
; Check if we got all the data.
719
; Check if we got all the data.
720
  .header_parsed:
720
  .header_parsed:
721
        add     [ebp + http_msg.content_received], eax
721
        add     [ebp + http_msg.content_received], eax
722
        mov     eax, [ebp + http_msg.content_length]
722
        mov     eax, [ebp + http_msg.content_received]
723
        cmp     eax, [ebp + http_msg.content_received]
723
        cmp     eax, [ebp + http_msg.content_length]
724
        jae     .got_all_data
724
        jae     .got_all_data
Line 725... Line 725...
725
        jmp     .need_more_data
725
;        jmp     .need_more_data
726
 
726
 
727
  .need_more_data:
727
  .need_more_data:
728
        popa
728
        popa
Line 743... Line 743...
743
        sub     eax, http_msg.data
743
        sub     eax, http_msg.data
744
        sub     eax, ebp
744
        sub     eax, ebp
745
        mov     [ebp + http_msg.content_length], eax
745
        mov     [ebp + http_msg.content_length], eax
746
        mov     [ebp + http_msg.content_received], eax
746
        mov     [ebp + http_msg.content_received], eax
747
  .got_all_data:
747
  .got_all_data:
748
        DEBUGF  1, "We got all the data! (%u bytes)\n", [ebp + http_msg.content_length]
748
        DEBUGF  1, "We got all the data! (%u bytes)\n", [ebp + http_msg.content_received]
749
        or      [ebp + http_msg.flags], FLAG_GOT_ALL_DATA
749
        or      [ebp + http_msg.flags], FLAG_GOT_ALL_DATA
750
        and     [ebp + http_msg.flags], not FLAG_CONNECTED
750
        and     [ebp + http_msg.flags], not FLAG_CONNECTED
751
        mcall   close, [ebp + http_msg.socket]
751
        mcall   close, [ebp + http_msg.socket]
752
        popa
752
        popa
753
        xor     eax, eax
753
        xor     eax, eax