projects
/
swifty.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove debug prints from the RecvFrom function.
[swifty.git]
/
src
/
libswift
/
channel.cpp
diff --git
a/src/libswift/channel.cpp
b/src/libswift/channel.cpp
index
2d9640c
..
ef30add
100644
(file)
--- a/
src/libswift/channel.cpp
+++ b/
src/libswift/channel.cpp
@@
-323,8
+323,8
@@
int Channel::RecvFrom (evutil_socket_t sock, Address& addr, struct evbuffer **ev
}
length = 0;
for (int i=0; i<addr.addr->count; ++i) {
}
length = 0;
for (int i=0; i<addr.addr->count; ++i) {
- length +=
iov[i].iov_len
;
- vec[i].iov_len =
iov[i].iov_len
;
+ length +=
addr.addr->dests[i].bytes
;
+ vec[i].iov_len =
addr.addr->dests[i].bytes
;
if (evbuffer_commit_space(evb[i], &vec[i], 1) < 0) {
length = 0;
print_error("error on evbuffer_commit_space");
if (evbuffer_commit_space(evb[i], &vec[i], 1) < 0) {
length = 0;
print_error("error on evbuffer_commit_space");