Changeset 17 in cheroxy for trunk


Ignore:
Timestamp:
11/06/12 16:28:09 (12 years ago)
Author:
cheese
Message:

#1 fix crash bug at some sites like http://msdn.com .

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/CRXHttpRequest.h

    r5 r17  
    1212    std::string mMethod;
    1313    std::string mUrl;
    14     std::string mHttpVersion;
    1514
    1615    std::string mProtocol;
  • trunk/src/CRXHttpMessage.cpp

    r6 r17  
    88#include "CRXHttpMessage.h"
    99
    10 #include <iostream>
    11 #include <stdio.h>
    12 #include <stdlib.h>
    13 
    1410CRXHttpMessage::CRXHttpMessage (void)
    15     : mHttpMessage  (""),
    16       mHttpVersion  ("")
    1711{
    1812}
     
    2418        return ;
    2519
    26     mHttpMessage.clear ();
    2720    mHttpMessage.assign (aHttpMessage);
    2821
  • trunk/src/CRXHttpRequest.cpp

    r6 r17  
    88#include "CRXHttpRequest.h"
    99
    10 #include <iostream>
    1110#include <stdio.h>
    1211#include <stdlib.h>
    1312
    1413CRXHttpRequest::CRXHttpRequest (void)
    15     : mMethod       (""),
    16       mUrl          (""),
    17       mHttpVersion  (""),
    18       mProtocol     (""),
    19       mHost         (""),
     14    :
    2015      mPort         (0)
    2116{
     
    6560
    6661    char        aMethod[64]         = {0x00, };
    67     char        aUrl[1024        = {0x00, };
     62    char        aUrl[1024 * 4]      = {0x00, };
    6863    char        aHttpVersion[64]    = {0x00, };
    6964
  • trunk/src/CRXHttpResponse.cpp

    r6 r17  
    88#include "CRXHttpResponse.h"
    99
    10 #include <iostream>
    1110#include <stdio.h>
    1211#include <stdlib.h>
  • trunk/src/main.cpp

    r16 r17  
    3838#define CRX_PRINT_ERROR(__code, __message)                                                              \
    3939    do {                                                                                                \
    40         char __error[1024] = {0x00, };                                                                  \
     40        char __error[4096] = {0x00, };                                                                  \
    4141        ostringstream __stream;                                                                         \
    4242        __stream << __message;                                                                          \
     
    122122    int                 aReceivedSize   = 0;
    123123
    124     const unsigned int  aBufferSize     = 1024 * 64;
     124    const unsigned int  aBufferSize     = 1024 * 16;
    125125    char                aBuffer[aBufferSize] = {0x00, };
    126126
     
    132132
    133133    bool                aIsMoreRequest = false;
     134
    134135    /*----------------------------------------------------------------*/
    135136    delete (CRXProxyThreadArgs *)aThreadArg;
Note: See TracChangeset for help on using the changeset viewer.