Skip to content

Commit

Permalink
set up max file handles to 2048
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest committed Nov 29, 2017
1 parent e0f46f8 commit e160699
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions maputil.c
Expand Up @@ -1894,6 +1894,14 @@ shapeObj *msOffsetPolyline(shapeObj *p, double offsetx, double offsety)

int msSetup()
{
#ifdef _WIN32
int res = _getmaxstdio();
if (res < 2048) {
res = _setmaxstdio(2048);
assert(res != -1);
}
#endif

#ifdef USE_THREAD
msThreadInit();
#endif
Expand Down

0 comments on commit e160699

Please sign in to comment.