Cloud Backed SQLite

Check-in [59506d815f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add extra debugging logging for winsock errors.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 59506d815f342462f4eb1393a224334e5770d0cdaa274af2d4fa6717a5d24002
User & Date: dan 2022-03-28 15:55:15.419
Context
2022-03-28
17:28
Retry a few times if a recv() call on a socket on which a message is being received returns WSAWOULDBLOCK. check-in: 8954abdf10 user: dan tags: trunk
15:55
Add extra debugging logging for winsock errors. check-in: 59506d815f user: dan tags: trunk
2022-03-02
20:07
Add the -httptimeout option to the daemon. For specifying a number of seconds after which to assume an HTTP request to cloud storage is lost. Default 600. check-in: 60dc5b1d4a user: dan tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/blockcachevfsd.c.
4971
4972
4973
4974
4975
4976
4977




4978
4979
4980
4981
4982
4983
4984
){
  BlockcacheMessage *pMsg = 0;
  int rc;

  rc = bcvRecvMsg(pClient->fd, &pMsg);
  assert( (rc==SQLITE_OK)==(pMsg!=0) );
  if( rc ){




    bdCloseConnection(p, pClient);
  }else{
    bdLogMessage(p, pClient, pMsg);
    switch( pMsg->eType ){
      case BCV_MESSAGE_LOGIN: {
        bdHandleClientLogin(p, pClient, pMsg);
        *pbLogin = 1;







>
>
>
>







4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
){
  BlockcacheMessage *pMsg = 0;
  int rc;

  rc = bcvRecvMsg(pClient->fd, &pMsg);
  assert( (rc==SQLITE_OK)==(pMsg!=0) );
  if( rc ){
#ifdef __WIN32__
    int err = WSAGetLastError();
    daemon_event_log(p, "WSAGetLastError() returns %d, disconnecting", err);
#endif
    bdCloseConnection(p, pClient);
  }else{
    bdLogMessage(p, pClient, pMsg);
    switch( pMsg->eType ){
      case BCV_MESSAGE_LOGIN: {
        bdHandleClientLogin(p, pClient, pMsg);
        *pbLogin = 1;