Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
04910c90
Commit
04910c90
authored
Jun 25, 2015
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support for large request/response on windows
parent
ffbe5656
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
31 deletions
+8
-31
ipc_windows.go
rpc/comms/ipc_windows.go
+8
-31
No files found.
rpc/comms/ipc_windows.go
View file @
04910c90
...
@@ -640,7 +640,7 @@ func newIpcClient(cfg IpcConfig, codec codec.Codec) (*ipcClient, error) {
...
@@ -640,7 +640,7 @@ func newIpcClient(cfg IpcConfig, codec codec.Codec) (*ipcClient, error) {
return
nil
,
err
return
nil
,
err
}
}
return
&
ipcClient
{
cfg
.
Endpoint
,
codec
,
codec
.
New
(
c
)},
nil
return
&
ipcClient
{
cfg
.
Endpoint
,
c
,
c
odec
,
codec
.
New
(
c
)},
nil
}
}
func
(
self
*
ipcClient
)
reconnect
()
error
{
func
(
self
*
ipcClient
)
reconnect
()
error
{
...
@@ -667,36 +667,13 @@ func startIpc(cfg IpcConfig, codec codec.Codec, api shared.EthereumApi) error {
...
@@ -667,36 +667,13 @@ func startIpc(cfg IpcConfig, codec codec.Codec, api shared.EthereumApi) error {
glog
.
V
(
logger
.
Error
)
.
Infof
(
"Error accepting ipc connection - %v
\n
"
,
err
)
glog
.
V
(
logger
.
Error
)
.
Infof
(
"Error accepting ipc connection - %v
\n
"
,
err
)
continue
continue
}
}
go
func
(
conn
net
.
Conn
)
{
go
handle
(
conn
,
api
,
codec
)
codec
:=
codec
.
New
(
conn
)
}
for
{
os
.
Remove
(
cfg
.
Endpoint
)
req
,
err
:=
codec
.
ReadRequest
()
}()
if
err
==
io
.
EOF
{
codec
.
Close
()
return
}
else
if
err
!=
nil
{
glog
.
V
(
logger
.
Error
)
.
Infof
(
"IPC recv err - %v
\n
"
,
err
)
codec
.
Close
()
return
}
var
rpcResponse
interface
{}
res
,
err
:=
api
.
Execute
(
req
)
rpcResponse
=
shared
.
NewRpcResponse
(
req
.
Id
,
req
.
Jsonrpc
,
res
,
err
)
err
=
codec
.
WriteResponse
(
rpcResponse
)
if
err
!=
nil
{
glog
.
V
(
logger
.
Error
)
.
Infof
(
"IPC send err - %v
\n
"
,
err
)
codec
.
Close
()
return
}
}
}(
conn
)
}
}()
glog
.
V
(
logger
.
Info
)
.
Infof
(
"IPC service started (%s)
\n
"
,
cfg
.
Endpoint
)
glog
.
V
(
logger
.
Info
)
.
Infof
(
"IPC service started (%s)
\n
"
,
cfg
.
Endpoint
)
return
nil
return
nil
...
...
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