Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Fix spurious 'Socket receive buffer full' errors #61

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Mar 29, 2015

  1. Make build and install under PyPy.

    Replaces PyObject_Malloc/Free with their PyMem counterparts; PyPy does
    not support the PyObject variants. Arguably, based on
    https://docs.python.org/2.3/whatsnew/section-pymalloc.html the PyMem
    variants are a better fit for this use case anyway (PyObject_ being
    intended for "small" allocations).
    
    Disables the use of CP1250 under PyPy because it lacks the
    PyUnicode_Encode function.
    
    There are no new tests failures. (testConnectWithWrongDB fails with a
    1044 error for me and not 1049 with both the original code under
    CPython and this code under PyPy).
    jamadden committed Mar 29, 2015
    Configuration menu
    Copy the full SHA
    4eecc13 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2016

  1. Defrag the read buffer when it gets full.

    If we are reading many packets of different sizes from a fast database
    server, it's possible that the skip() method of the packet reader will
    never find the start and end pointers aligned and so it will never reset
    them. This can lead to throwing 'Socket receive buffer full' errors when
    we reach the end, even if there's plenty of unused space at the start of
    the buffer from previous packets.
    
    This checks for this situation and moves the live data and current
    pointers to the start of the buffer, thus making room (if possible).
    jamadden committed Jul 27, 2016
    Configuration menu
    Copy the full SHA
    9d14d3c View commit details
    Browse the repository at this point in the history
  2. add to gitignore

    papachoco committed Jul 27, 2016
    Configuration menu
    Copy the full SHA
    d86184e View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2017

  1. git ignore

    papachoco committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    16653f8 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2019

  1. Configuration menu
    Copy the full SHA
    6e4bf3a View commit details
    Browse the repository at this point in the history