Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5c9e9c0c
Commit
5c9e9c0c
authored
Aug 11, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set Win32 server-size socket buffer to 32k, for performance reasons.
Yoshiyuki Asaba
parent
99c2b8b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+15
-1
No files found.
src/backend/libpq/pqcomm.c
View file @
5c9e9c0c
...
...
@@ -30,7 +30,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.18
6 2006/07/14 05:28:27 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.18
7 2006/08/11 20:44:20 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -593,6 +593,20 @@ StreamConnection(int server_fd, Port *port)
return
STATUS_ERROR
;
}
#ifdef WIN32
/*
* This is a Win32 socket optimization. The ideal size is 32k.
* http://support.microsoft.com/kb/823764/EN-US/
*/
on
=
PQ_BUFFER_SIZE
*
4
;
if
(
setsockopt
(
port
->
sock
,
SOL_SOCKET
,
SO_SNDBUF
,
(
char
*
)
&
on
,
sizeof
(
on
))
<
0
)
{
elog
(
LOG
,
"setsockopt(SO_SNDBUF) failed: %m"
);
return
STATUS_ERROR
;
}
#endif
/*
* Also apply the current keepalive parameters. If we fail to set a
* parameter, don't error out, because these aren't universally
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment