Strange problems with SSH sessions

View: New views
2 Messages — Rating Filter:   Alert me  

Strange problems with SSH sessions

by Alex Komratov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi people!


I've got a problem while using SSH sessions.

After initiating both server and client sessions I'm making some data
exchange using 512 byte size messages. That's working well.
But when after that I'm trying to transfer 332825 bytes the problem comes.

 From the view of the client: it's sending all data using
cryptPushData() and cryptFlushData() as I want to be sure all data block
is sent. Everything is OK. No eroor code returned.

 From the view of a server: it's receiving 328741 bytes only. After I'm
trying to get the rest cryptPopData() is blocked until timeout ends and
after that it returns -25 error code (CRYPT_ERROR_TIMEOUT).

I've made this operation 10 times one after one with the same result.

Cryptlib ver 3.3.2.0  both server and client under Windows XP on the
same machine.

Result is the same even if I launch them on different computers in LAN.


Maybe I'm not seeing somethin obvious.
Any help will be OK.


Alexander Komratov

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.

Re: Strange problems with SSH sessions

by Peter Gutmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alex Komratov <komratov@...> writes:

>After initiating both server and client sessions I'm making some data
>exchange using 512 byte size messages. That's working well. But when after
>that I'm trying to transfer 332825 bytes the problem comes.
>
>From the view of the client: it's sending all data using cryptPushData() and
>cryptFlushData() as I want to be sure all data block is sent. Everything is
>OK. No eroor code returned.
>
>From the view of a server: it's receiving 328741 bytes only. After I'm trying
>to get the rest cryptPopData() is blocked until timeout ends and after that it
>returns -25 error code (CRYPT_ERROR_TIMEOUT).

What's the extended error information?  I don't know if there'll be much I can
do here, it sounds like it's something that's highly specific to your
particular setup which means it'd be more or less impossible to reproduce
elsewhere.  Can you run the code under a debugger to see what's going on, or
do something similar?  It sounds like you'd need to be able to get a detailed
look at the session internals.

Peter.

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.