Skip to content

Commit

Permalink
Use recv() and send() for socket communication on VMS instead of read()
Browse files Browse the repository at this point in the history
and write().  The reason is that read() and write() make additional record
level locking which causes hangs of Compaq Secure Web Server (Apache) with
SSL.
Submitted by Compaq.
  • Loading branch information
levitte committed Apr 6, 2002
1 parent 83d092f commit 1fc02dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions e_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ extern "C" {
#define closesocket(s) MacSocket_close(s)
#define readsocket(s,b,n) MacSocket_recv((s),(b),(n),true)
#define writesocket(s,b,n) MacSocket_send((s),(b),(n))
#elif defined(VMS)
#define get_last_socket_error() errno
#define clear_socket_error() errno=0
#define ioctlsocket(a,b,c) ioctl(a,b,c)
#define closesocket(s) close(s)
#define readsocket(s,b,n) recv((s),(b),(n),0)
#define writesocket(s,b,n) send((s),(b),(n),0)
#else
#define get_last_socket_error() errno
#define clear_socket_error() errno=0
Expand Down

0 comments on commit 1fc02dc

Please sign in to comment.